From 860cf9a026a4c591057783e9bc6929b24dba96f3 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 23 Oct 2015 16:04:32 +0200 Subject: Added systemd unit file for starting/stopping logactio at boot Signed-off-by: David Sommerseth --- init/systemd/logactio.service | 14 ++++++++++++++ init/systemd/logactio.sysconf | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 init/systemd/logactio.service create mode 100644 init/systemd/logactio.sysconf diff --git a/init/systemd/logactio.service b/init/systemd/logactio.service new file mode 100644 index 0000000..e1febf3 --- /dev/null +++ b/init/systemd/logactio.service @@ -0,0 +1,14 @@ +[Unit] +Description=LogActio executes configured actions based on log events +After=syslog.target iptables.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} + +[Install] +WantedBy=basic.target diff --git a/init/systemd/logactio.sysconf b/init/systemd/logactio.sysconf new file mode 100644 index 0000000..bf6c53e --- /dev/null +++ b/init/systemd/logactio.sysconf @@ -0,0 +1,2 @@ +# Additional options added to the logactio command line +LOGACTIO_OPTS="-vv" -- cgit