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