2023-04-11 13:01:02 +02:00
|
|
|
# vim: ft=systemd
|
|
|
|
[Unit]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
2023-05-05 15:33:00 +02:00
|
|
|
# See `man systemd.exec` and `man systemd.service` for most options below
|
2023-04-11 13:01:02 +02:00
|
|
|
[Service]
|
|
|
|
ExecStart=/path/to/reaction -c /etc/reaction.yml
|
|
|
|
|
|
|
|
# Ask systemd to create /var/lib/reaction (/var/lib/ is implicit)
|
|
|
|
StateDirectory=reaction
|
2023-05-05 15:33:00 +02:00
|
|
|
# Ask systemd to create /run/reaction at runtime (/run/ is implicit)
|
|
|
|
RuntimeDirectory=reaction
|
2023-04-11 13:01:02 +02:00
|
|
|
# Start reaction in its state directory
|
|
|
|
WorkingDirectory=/var/lib/reaction
|