summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2015-10-23 16:04:32 +0200
committerDavid Sommerseth <davids@redhat.com>2015-10-23 16:04:32 +0200
commit860cf9a026a4c591057783e9bc6929b24dba96f3 (patch)
tree9f4943606fb7fb0d116f9a2b30047ceb07e096fc
parentdcf71391f7302097b93e88c9576e279c8c097491 (diff)
downloadlogactio-860cf9a026a4c591057783e9bc6929b24dba96f3.tar.gz
logactio-860cf9a026a4c591057783e9bc6929b24dba96f3.tar.xz
logactio-860cf9a026a4c591057783e9bc6929b24dba96f3.zip
Added systemd unit file for starting/stopping logactio at boot
Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--init/systemd/logactio.service14
-rw-r--r--init/systemd/logactio.sysconf2
2 files changed, 16 insertions, 0 deletions
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"