Toggle between client and router mode on network interface (Linux)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
884 B

6 years ago
  1. # Original service file by Arch Linux team
  2. # https://git.archlinux.org/svntogit/packages.git/tree/trunk/dhcpd4.service?h=packages/dhcp
  3. [Unit]
  4. Description=IPv4 DHCP server (%i)
  5. After=snic-static@%i.service
  6. Wants=snic-static@%i.service
  7. [Service]
  8. Type=forking
  9. ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/snic/dhcpd4-%i.conf -pf /run/dhcpd4/dhcpd-%i.pid
  10. RuntimeDirectory=dhcpd4
  11. PIDFile=/run/dhcpd4/dhcpd-%i.pid
  12. User=dhcp
  13. AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
  14. ProtectSystem=full
  15. ProtectHome=on
  16. KillSignal=SIGINT
  17. # We pull in network-online.target for a configured network connection.
  18. # However this is not guaranteed to be the network connection our
  19. # networks are configured for. So try to restart on failure with a delay
  20. # of two seconds. Rate limiting kicks in after 12 seconds.
  21. RestartSec=2s
  22. Restart=on-failure
  23. StartLimitInterval=12s
  24. [Install]
  25. WantedBy=multi-user.target