reaction/config/reaction.example.service

17 lines
601 B
SYSTEMD
Raw Permalink 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
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
# After=docker.service
2023-04-11 13:01:02 +02:00
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