From 68d04e63c35e8c2f352ff83c309d2101a22ba064 Mon Sep 17 00:00:00 2001 From: AndrewPaglusch Date: Fri, 8 Dec 2023 21:18:11 -0600 Subject: [PATCH] update systemd units with examples from repo --- templates/lighthouse.service.j2 | 12 +++++++----- templates/node.service.j2 | 11 ++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/templates/lighthouse.service.j2 b/templates/lighthouse.service.j2 index 52f1474..a0d2f38 100644 --- a/templates/lighthouse.service.j2 +++ b/templates/lighthouse.service.j2 @@ -1,12 +1,13 @@ [Unit] -Description=Nebula Lighthouse -Wants=basic.target -After=basic.target network.target +Description=Nebula overlay networking tool - Lighthouse +Wants=basic.target network-online.target nss-lookup.target time-sync.target +After=basic.target network.target network-online.target +Before=sshd.service [Service] +Type=notify +NotifyAccess=main SyslogIdentifier=nebula -StandardOutput=syslog -StandardError=syslog ExecReload=/bin/kill -HUP $MAINPID ExecStart=/opt/nebula/nebula -config /opt/nebula/config.yml Restart=always @@ -14,3 +15,4 @@ RestartSec=42s [Install] WantedBy=multi-user.target + diff --git a/templates/node.service.j2 b/templates/node.service.j2 index a28544a..50be4b0 100644 --- a/templates/node.service.j2 +++ b/templates/node.service.j2 @@ -1,12 +1,13 @@ [Unit] -Description=nebula -Wants=basic.target -After=basic.target network.target +Description=Nebula overlay networking tool +Wants=basic.target network-online.target nss-lookup.target time-sync.target +After=basic.target network.target network-online.target +Before=sshd.service [Service] +Type=notify +NotifyAccess=main SyslogIdentifier=nebula -StandardOutput=syslog -StandardError=syslog ExecReload=/bin/kill -HUP $MAINPID ExecStart=/opt/nebula/nebula -config /opt/nebula/config.yml Restart=always