| 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 |
|
| 7 |
[Service] |
| 8 |
Type=notify |
| 9 |
NotifyAccess=main |
| 10 |
SyslogIdentifier=nebula |
| 11 |
|
| 12 |
# Uncomment to run as an unprivileged user with only CAP_NET_ADMIN. Requires a |
| 13 |
# nebula user that owns the config directory. Add CAP_NET_BIND_SERVICE to both |
| 14 |
# lines if any listener (lighthouse DNS, listen.port, stats, sshd) binds <1024. |
| 15 |
#User=nebula |
| 16 |
#Group=nebula |
| 17 |
#CapabilityBoundingSet=CAP_NET_ADMIN |
| 18 |
#AmbientCapabilities=CAP_NET_ADMIN |
| 19 |
|
| 20 |
ExecReload=/bin/kill -HUP $MAINPID |
| 21 |
ExecStart=/usr/local/bin/nebula -config /etc/nebula/config.yml |
| 22 |
Restart=always |
| 23 |
|
| 24 |
[Install] |
| 25 |
WantedBy=multi-user.target |