mirror of
https://framagit.org/ppom/reaction
synced 2024-05-16 16:26:43 +02:00
systemd service files cleaning 🧹
This commit is contained in:
parent
38000b102f
commit
3d697a5003
2
Makefile
2
Makefile
|
@ -47,5 +47,5 @@ install: all
|
|||
install -m755 nft46 $(DESTDIR)$(BINDIR)
|
||||
|
||||
install_systemd: install
|
||||
install -m644 config/reaction.debian.service $(SYSTEMDDIR)/system/reaction.service
|
||||
install -m644 config/reaction.example.service $(SYSTEMDDIR)/system/reaction.service
|
||||
sed -i 's#/usr/bin#$(DESTDIR)$(BINDIR)#' $(SYSTEMDDIR)/system/reaction.service
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
[Unit]
|
||||
Description=A daemon that scans program outputs for repeated patterns, and takes action.
|
||||
Documentation=https://framagit.org/ppom/reaction-wiki
|
||||
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
|
||||
# After=docker.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/reaction start -c /etc/reaction.jsonnet
|
||||
StateDirectory=reaction
|
||||
RuntimeDirectory=reaction
|
||||
WorkingDirectory=/var/lib/reaction
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,4 +1,8 @@
|
|||
# vim: ft=systemd
|
||||
[Unit]
|
||||
Description=A daemon that scans program outputs for repeated patterns, and takes action.
|
||||
Documentation=https://reaction.ppom.me
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
|
||||
|
@ -6,7 +10,7 @@ WantedBy=multi-user.target
|
|||
|
||||
# See `man systemd.exec` and `man systemd.service` for most options below
|
||||
[Service]
|
||||
ExecStart=/path/to/reaction start -c /etc/reaction.jsonnet
|
||||
ExecStart=/usr/bin/reaction start -c /etc/reaction.jsonnet
|
||||
|
||||
# Ask systemd to create /var/lib/reaction (/var/lib/ is implicit)
|
||||
StateDirectory=reaction
|
||||
|
|
1
debian/reaction@.service
vendored
1
debian/reaction@.service
vendored
|
@ -1,3 +1,4 @@
|
|||
# vim: ft=systemd
|
||||
[Unit]
|
||||
Description=A daemon that scans program outputs for repeated patterns, and takes action.
|
||||
Documentation=https://framagit.org/ppom/reaction-wiki
|
||||
|
|
Loading…
Reference in a new issue