okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 1 | [Unit] |
| 2 | Description = staffeln api service |
okozachenko1203 | 62f8259 | 2021-05-11 14:50:18 +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 | bac8386 | 2021-05-11 16:19:36 +0545 | [diff] [blame] | 8 | User = cgm |
| 9 | Group = cgm |
Susanta Gautam | dcc5a25 | 2021-05-11 16:15:00 +0545 | [diff] [blame] | 10 | ExecStart = /home/cgm/cgm/bin/staffeln-api |
okozachenko | 263b372 | 2021-05-11 13:05:56 +0300 | [diff] [blame] | 11 | ExecReload = /bin/kill -HUP $MAINPID |
| 12 | # Give a reasonable amount of time for the server to start up/shut down |
| 13 | TimeoutSec = 120 |
| 14 | Restart = on-failure |
| 15 | RestartSec = 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. |
| 19 | Slice = staffeln.slice |
| 20 | # Set Accounting |
| 21 | CPUAccounting = True |
| 22 | BlockIOAccounting = True |
| 23 | MemoryAccounting = True |
| 24 | TasksAccounting = True |
| 25 | # Set Sandboxing |
| 26 | PrivateTmp = False |
| 27 | PrivateDevices = False |
| 28 | PrivateNetwork = False |
| 29 | PrivateUsers = False |
Susanta Gautam | dcc5a25 | 2021-05-11 16:15:00 +0545 | [diff] [blame] | 30 | 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] | 31 | |
| 32 | [Install] |
| 33 | WantedBy = multi-user.target |