nebula.service 757 B

12345678910111213141516171819202122232425
  1. [Unit]
  2. Description=Nebula overlay networking tool
  3. Wants=basic.target network-online.target nss-lookup.target time-sync.target
  4. After=basic.target network.target network-online.target
  5. Before=sshd.service
  6. [Service]
  7. Type=notify
  8. NotifyAccess=main
  9. SyslogIdentifier=nebula
  10. # Uncomment to run as an unprivileged user with only CAP_NET_ADMIN. Requires a
  11. # nebula user that owns the config directory. Add CAP_NET_BIND_SERVICE to both
  12. # lines if any listener (lighthouse DNS, listen.port, stats, sshd) binds <1024.
  13. #User=nebula
  14. #Group=nebula
  15. #CapabilityBoundingSet=CAP_NET_ADMIN
  16. #AmbientCapabilities=CAP_NET_ADMIN
  17. ExecReload=/bin/kill -HUP $MAINPID
  18. ExecStart=/usr/local/bin/nebula -config /etc/nebula/config.yml
  19. Restart=always
  20. [Install]
  21. WantedBy=multi-user.target