diff options
author | torben | 2018-09-10 22:20:04 +0200 |
---|---|---|
committer | torben | 2018-09-10 22:20:04 +0200 |
commit | 98c6f1f180ccd67f3c7e9b50c618972709ab2dca (patch) | |
tree | 36fbeba3be1643a8af2540f9064d67f7b49863c0 | |
parent | fix. (diff) | |
download | systemd-init-98c6f1f180ccd67f3c7e9b50c618972709ab2dca.tar.gz systemd-init-98c6f1f180ccd67f3c7e9b50c618972709ab2dca.tar.xz systemd-init-98c6f1f180ccd67f3c7e9b50c618972709ab2dca.zip |
enable background replication after wlan restart.
-rw-r--r-- | modules.d/dnbd-root-filesystem/services/background-replication.service | 4 | ||||
-rwxr-xr-x | modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/modules.d/dnbd-root-filesystem/services/background-replication.service b/modules.d/dnbd-root-filesystem/services/background-replication.service index 1a1013b0..d2a4920e 100644 --- a/modules.d/dnbd-root-filesystem/services/background-replication.service +++ b/modules.d/dnbd-root-filesystem/services/background-replication.service @@ -5,8 +5,8 @@ After=network.target restart-wireless-daemon.service [Service] Type=oneshot RemainAfterExit=true -ExecStart=/usr/bin/killall --signal HUP -- dnbd-server -ExecStop=/usr/bin/sed --in-place --regexp-extended 's/(backgroundReplication=)true/\1false/' /mnt/configuration/dnbd/server.conf/ && /usr/bin/killall --signal HUP -- dnbd-server +ExecStart=/run/initramfs/usr/bin/killall --signal HUP -- dnbd-server +ExecStop=/run/initramfs/usr/bin/sed --in-place --regexp-extended 's/(backgroundReplication=)true/\1false/' /mnt/configuration/dnbd/server.conf/ && /run/initramfs/usr/bin/killall --signal HUP -- dnbd-server [Install] WantedBy=multi-user.target diff --git a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh index 93a47b45..0446cb88 100755 --- a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh +++ b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh @@ -105,6 +105,7 @@ if [ ! -f /tmp/wireless-daemon-restarted ]; then wget --output-document - http://10.21.9.111:8080/BOOTED systemctl start restart-wireless-daemon.service touch /tmp/wireless-daemon-restarted + /run/initramfs/usr/bin/killall --signal HUP -- dnbd-server fi $(cat "$NEWROOT/root/.bash_profile") EOF |