| 1 | # An example service file for systemd-managed Red October, for use |
| 2 | # with the accompanying socket file. Useful for running as an |
| 3 | # unprivileged user while binding to a privileged port, for example. |
| 4 | |
| 5 | [Unit] |
| 6 | Description='Red October' |
| 7 | |
| 8 | Requires=network.target |
| 9 | After=multi-user.target |
| 10 | |
| 11 | [Exec] |
| 12 | User=redoctober |
| 13 | Group=redoctober |
| 14 | |
| 15 | [Service] |
| 16 | Type=simple |
| 17 | ExecStart=/usr/local/sbin/redoctober -vaultpath=/etc/redoctober/diskrecord.json -certs=/etc/redoctober/cert/server.crt -keys=/etc/redoctober/cert/server.pem -systemdfds |
| 18 | User=redoctober |
| 19 | Group=redoctober |
| 20 | SyslogIdentifier=redoctober |
| 21 | StandardOutput=syslog |
| 22 | StandardError=inherit |
| 23 | Restart=always |
| 24 | |
| 25 | [Install] |
| 26 | WantedBy=multi-user.target |