diff options
author | David Sommerseth <davids@redhat.com> | 2015-10-23 16:04:32 +0200 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2015-10-23 16:04:32 +0200 |
commit | 860cf9a026a4c591057783e9bc6929b24dba96f3 (patch) | |
tree | 9f4943606fb7fb0d116f9a2b30047ceb07e096fc | |
parent | dcf71391f7302097b93e88c9576e279c8c097491 (diff) | |
download | logactio-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.service | 14 | ||||
-rw-r--r-- | init/systemd/logactio.sysconf | 2 |
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" |