Tweaking depency order in init configs
This commit is contained in:
parent
2d483078e6
commit
5f87c22ece
2 changed files with 5 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
name="$RC_SVCNAME"
|
name="$RC_SVCNAME"
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
use net logger
|
use net logger rdnssd
|
||||||
before sshd
|
before sshd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue