Tweaking depency order in init configs

This commit is contained in:
fnux 2020-01-24 09:44:31 +01:00
parent 2d483078e6
commit 5f87c22ece
2 changed files with 5 additions and 2 deletions

View file

@ -6,7 +6,7 @@
name="$RC_SVCNAME" name="$RC_SVCNAME"
depend() { depend() {
use net logger use net logger rdnssd
before sshd before sshd
} }

View file

@ -1,5 +1,8 @@
[Unit] [Unit]
Description=Initialize an Uncloud virtual machine Description=Initialize an Uncloud virtual machine
After=rdnssd.service
Before=network.target
Requires=network.target
[Service] [Service]
Type=oneshot Type=oneshot
@ -7,4 +10,4 @@ RemainAfterExit=yes
ExecStart=/usr/local/bin/uncloud-init ExecStart=/usr/local/bin/uncloud-init
[Install] [Install]
WantedBy=network.target WantedBy=multi-user.target