Add service and logrotate files

tags/e2guardian-5.0.0beta-0.beta2
Daniel Berteaud 7 years ago
parent 130f49b213
commit b5ad38a27d
  1. 10
      e2guardian.logrotate
  2. 15
      e2guardian.service

@ -0,0 +1,10 @@
/var/log/e2guardian/access.log {
rotate 4
weekly
sharedscripts
postrotate
systemctl restart e2guardian
endscript
}

@ -0,0 +1,15 @@
[Unit]
Description=E2guardian Web filtering
After=network.target
[Service]
LimitNOFILE=65535
Type=simple
IgnoreSIGPIPE=no
ExecStart=/usr/sbin/e2guardian -N
ExecReload=/usr/sbin/e2guardian -r
Restart=always
[Install]
WantedBy=multi-user.target
Loading…
Cancel
Save