blob: 45005ec04115b273d47493496ea7c6f32488e63c [file] [log] [blame]
okozachenko263b3722021-05-11 13:05:56 +03001[Unit]
2Description = staffeln api service
okozachenko120362f82592021-05-11 14:50:18 +02003After = cinder-backup.service
okozachenko263b3722021-05-11 13:05:56 +03004After = syslog.target
5
6[Service]
7Type = simple
Susanta Gautambac83862021-05-11 16:19:36 +05458User = cgm
9Group = cgm
Susanta Gautamdcc5a252021-05-11 16:15:00 +054510ExecStart = /home/cgm/cgm/bin/staffeln-api
okozachenko263b3722021-05-11 13:05:56 +030011ExecReload = /bin/kill -HUP $MAINPID
12# Give a reasonable amount of time for the server to start up/shut down
13TimeoutSec = 120
14Restart = on-failure
15RestartSec = 2
16# This creates a specific slice which all services will operate from
17# The accounting options give us the ability to see resource usage through
18# the `systemd-cgtop` command.
19Slice = staffeln.slice
20# Set Accounting
21CPUAccounting = True
22BlockIOAccounting = True
23MemoryAccounting = True
24TasksAccounting = True
25# Set Sandboxing
26PrivateTmp = False
27PrivateDevices = False
28PrivateNetwork = False
29PrivateUsers = False
Susanta Gautamdcc5a252021-05-11 16:15:00 +054530Environment = PATH=/home/cgm/cgm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
okozachenko263b3722021-05-11 13:05:56 +030031
32[Install]
33WantedBy = multi-user.target