dhcp-log.service 439 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Write dhcp events to Eye
  3. After=network.target mariadb.service dnsmasq.service dhcpd.service dhcp-log-truncate.service
  4. Requires=dhcp-log-truncate.service
  5. [Service]
  6. Type=forking
  7. User=eye
  8. Group=eye
  9. RuntimeDirectory=eye
  10. RuntimeDirectoryMode=0700
  11. RuntimeDirectoryPreserve=yes
  12. ExecStart=/opt/Eye/scripts/dhcp-log.pl --start
  13. PIDFile=/run/eye/dhcp-log.pid
  14. RestartSec=30
  15. Restart=on-failure
  16. [Install]
  17. WantedBy=multi-user.target