2023-04-11 13:01:02 +02:00
|
|
|
# vim: ft=systemd
|
2023-11-11 12:00:00 +01:00
|
|
|
[Install]
|
2023-04-11 13:01:02 +02:00
|
|
|
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]
|
2023-12-20 12:00:00 +01:00
|
|
|
ExecStart=/path/to/reaction start -c /etc/reaction.jsonnet
|
2023-04-11 13:01:02 +02:00
|
|
|
|
|
|
|
# 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
|