| 1 |
[Unit] |
| 2 |
Description=Firewall log analyzer |
| 3 |
Documentation=man:fwlogwatch |
| 4 |
After=syslog.socket remote-fs.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
EnvironmentFile=/etc/default/fwlogwatch |
| 8 |
ExecStart=/bin/sh -c \ |
| 9 |
'if [ "x${START_DAEMON}" != "xtrue" ]; then echo "aborted"; exit 1; fi; \ |
| 10 |
exec /usr/sbin/fwlogwatch -c /etc/fwlogwatch/fwlogwatch.config -R ${PARAMS}' |
| 11 |
Type=forking |
| 12 |
PIDFile=/run/fwlogwatch.pid |
| 13 |
################ |
| 14 |
### Security ### |
| 15 |
################ |
| 16 |
InaccessibleDirectories=/boot /home /media /mnt /root /opt /srv |
| 17 |
PrivateTmp=yes |
| 18 |
ReadOnlyDirectories=/etc /usr /var |
| 19 |
ReadWriteDirectories=/var/run |
| 20 |
|
| 21 |
[Install] |
| 22 |
WantedBy=multi-user.target |