reaction/config/reaction.example.service

15 lines
460 B
SYSTEMD
Raw Normal View History

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]
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