summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2018-09-10 22:20:04 +0200
committertorben2018-09-10 22:20:04 +0200
commit98c6f1f180ccd67f3c7e9b50c618972709ab2dca (patch)
tree36fbeba3be1643a8af2540f9064d67f7b49863c0
parentfix. (diff)
downloadsystemd-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.service4
-rwxr-xr-xmodules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh1
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