Skip to content

Commit

Permalink
Add nss-lookup to the systemd wants (#791)
Browse files Browse the repository at this point in the history
* Add nss-lookup to the systemd wants to ensure DNS is running before starting nebula

* Add Ansible & example service scripts

* Fix #797

* Align Ansible scripts and examples

Co-authored-by: John Maguire <[email protected]>
  • Loading branch information
Fale and johnmaguire authored Dec 19, 2022
1 parent cb2ec86 commit 3ae242f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions dist/arch/nebula.service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Unit]
Description=nebula
Wants=basic.target network-online.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

[Service]
Expand Down
5 changes: 2 additions & 3 deletions dist/fedora/nebula.service
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
[Unit]
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
Wants=basic.target network-online.target

[Service]
SyslogIdentifier=nebula
ExecReload=/bin/kill -HUP $MAINPID
ExecStart=/usr/bin/nebula -config /etc/nebula/config.yml
Restart=always
SyslogIdentifier=nebula

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[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]
SyslogIdentifier=nebula
Expand Down
6 changes: 3 additions & 3 deletions examples/service_scripts/nebula.service
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[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]
Expand Down

0 comments on commit 3ae242f

Please sign in to comment.