mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
Add system-reaction.slice
This commit is contained in:
parent
f2b1accec0
commit
5a6c203c01
3 changed files with 6 additions and 1 deletions
|
|
@ -29,6 +29,8 @@ assets = [
|
||||||
[ "target/release/reaction.bash", "/usr/share/bash-completion/completions/reaction", "644" ],
|
[ "target/release/reaction.bash", "/usr/share/bash-completion/completions/reaction", "644" ],
|
||||||
[ "target/release/reaction.fish", "/usr/share/fish/completions/", "644" ],
|
[ "target/release/reaction.fish", "/usr/share/fish/completions/", "644" ],
|
||||||
[ "target/release/_reaction", "/usr/share/zsh/vendor-completions/", "644" ],
|
[ "target/release/_reaction", "/usr/share/zsh/vendor-completions/", "644" ],
|
||||||
|
# Slice
|
||||||
|
[ "packaging/system-reaction.slice", "/usr/lib/systemd/system/", "644" ],
|
||||||
]
|
]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# vim: ft=systemd
|
# vim: ft=systemd
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=A daemon that scans program outputs for repeated patterns, and takes action.
|
Description=reaction daemon
|
||||||
Documentation=https://reaction.ppom.me
|
Documentation=https://reaction.ppom.me
|
||||||
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
|
# Ensure reaction will insert its chain after docker has inserted theirs. Only useful when iptables & docker are used
|
||||||
# After=docker.service
|
# After=docker.service
|
||||||
|
|
@ -17,6 +17,8 @@ RuntimeDirectory=reaction
|
||||||
WorkingDirectory=/var/lib/reaction
|
WorkingDirectory=/var/lib/reaction
|
||||||
# Let reaction kill its child processes first
|
# Let reaction kill its child processes first
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
|
# Put reaction in its own slice so that plugins can be grouped within.
|
||||||
|
Slice=system-reaction.slice
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
|
||||||
1
packaging/system-reaction.slice
Normal file
1
packaging/system-reaction.slice
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
[Slice]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue