okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 1 | [Unit] |
| 2 | Description = staffeln conductor service |
okozachenko1203 | 78db763 | 2021-05-11 14:49:33 +0200 | [diff] [blame] | 3 | After = cinder-backup.service |
okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 4 | After = syslog.target |
| 5 | |
| 6 | [Service] |
| 7 | Type = simple |
Susanta Gautam | dcc5a25 | 2021-05-11 16:15:00 +0545 | [diff] [blame] | 8 | User = cgm |
| 9 | Group = cgm |
| 10 | ExecStart = /home/cgm/cgm/bin/staffeln-conductor |
okozachenko1203 | 78db763 | 2021-05-11 14:49:33 +0200 | [diff] [blame] | 11 | EnvironmentFile=/home/cgm/openrc |
okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 12 | ExecReload = /bin/kill -HUP $MAINPID |
| 13 | # Give a reasonable amount of time for the server to start up/shut down |
| 14 | TimeoutSec = 120 |
| 15 | Restart = on-failure |
| 16 | RestartSec = 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. |
| 20 | Slice = staffeln.slice |
| 21 | # Set Accounting |
| 22 | CPUAccounting = True |
| 23 | BlockIOAccounting = True |
| 24 | MemoryAccounting = True |
| 25 | TasksAccounting = True |
| 26 | # Set Sandboxing |
| 27 | PrivateTmp = False |
| 28 | PrivateDevices = False |
| 29 | PrivateNetwork = False |
| 30 | PrivateUsers = False |
Susanta Gautam | dcc5a25 | 2021-05-11 16:15:00 +0545 | [diff] [blame] | 31 | Environment = PATH=/home/cgm/cgm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 32 | |
| 33 | [Install] |
| 34 | WantedBy = multi-user.target |