summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@eurephia.org>2020-07-30 17:01:40 +0200
committerDavid Sommerseth <dazo@eurephia.org>2020-07-30 17:03:42 +0200
commit1d457e9677847c22df02096b6c59c7873451916d (patch)
treea40eab4147318093ae0e5ba754cf70e006b4b7d9
parent421c0a73bc8e8cfed0f1188bd886e741dff1076a (diff)
downloadlogactio-1d457e9677847c22df02096b6c59c7873451916d.tar.gz
logactio-1d457e9677847c22df02096b6c59c7873451916d.tar.xz
logactio-1d457e9677847c22df02096b6c59c7873451916d.zip
init/systemd: Switch to Type=simple
This is simpler and easier with systemd, as systemd is well capable of monitoring this service. Signed-off-by: David Sommerseth <dazo@eurephia.org>
-rw-r--r--init/systemd/logactio.service7
1 files changed, 3 insertions, 4 deletions
diff --git a/init/systemd/logactio.service b/init/systemd/logactio.service
index e1febf3..400b676 100644
--- a/init/systemd/logactio.service
+++ b/init/systemd/logactio.service
@@ -1,14 +1,13 @@
[Unit]
Description=LogActio executes configured actions based on log events
-After=syslog.target iptables.service
+After=syslog.target iptables.service nftables.service
ConditionFileNotEmpty=/etc/logactio.cfg
[Service]
EnvironmentFile=/etc/sysconfig/logactio
PrivateTmp=true
-Type=forking
-PIDFile=/run/logactio.pid
-ExecStart=/usr/bin/logactio --daemon --pid-file /run/logactio.pid -c /etc/logactio.cfg ${LOGACTIO_OPTS}
+Type=simple
+ExecStart=/usr/bin/logactio -c /etc/logactio.cfg ${LOGACTIO_OPTS}
[Install]
WantedBy=basic.target