| 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 | [Service] |
| 12 | Type=simple |
| 13 | ExecStart=/usr/sbin/redoctober -vaultpath=/etc/redoctober/diskrecord.json -certs=/etc/redoctober/cert/server.crt -keys=/etc/redoctober/cert/server.pem |
| 14 | SyslogIdentifier=redoctober |
| 15 | StandardOutput=syslog |
| 16 | StandardError=inherit |
| 17 | Restart=always |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |