From 7c30831ad2aee45b9ccc8d9156bf7d6069f61a6a Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Sun, 11 Aug 2019 11:09:40 +0200 Subject: [PATCH] initskripts: move unbound down after network down this remove a bunch of unbound errors at shutdown because network down try to reconfigure unbond. (e.g. disable forwarders) Signed-off-by: Arne Fitzenreiter --- config/rootfiles/common/aarch64/initscripts | 4 ++-- config/rootfiles/common/armv5tel/initscripts | 4 ++-- config/rootfiles/common/i586/initscripts | 4 ++-- config/rootfiles/common/x86_64/initscripts | 4 ++-- config/rootfiles/core/136/update.sh | 4 ++++ lfs/initscripts | 4 ++-- 6 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config/rootfiles/common/aarch64/initscripts b/config/rootfiles/common/aarch64/initscripts index 260a961fef..8a025c3bfc 100644 --- a/config/rootfiles/common/aarch64/initscripts +++ b/config/rootfiles/common/aarch64/initscripts @@ -109,11 +109,11 @@ etc/rc.d/rc0.d/K51vnstat etc/rc.d/rc0.d/K77conntrackd etc/rc.d/rc0.d/K78suricata etc/rc.d/rc0.d/K79leds -etc/rc.d/rc0.d/K79unbound etc/rc.d/rc0.d/K80network etc/rc.d/rc0.d/K82wlanclient #etc/rc.d/rc0.d/K84bluetooth #etc/rc.d/rc0.d/K85messagebus +etc/rc.d/rc0.d/K86unbound etc/rc.d/rc0.d/K87acpid etc/rc.d/rc0.d/K90sysklogd etc/rc.d/rc0.d/S60sendsignals @@ -162,11 +162,11 @@ etc/rc.d/rc6.d/K51vnstat etc/rc.d/rc6.d/K77conntrackd etc/rc.d/rc6.d/K78suricata etc/rc.d/rc6.d/K79leds -etc/rc.d/rc6.d/K79unbound etc/rc.d/rc6.d/K80network etc/rc.d/rc6.d/K82wlanclient #etc/rc.d/rc6.d/K84bluetooth #etc/rc.d/rc6.d/K85messagebus +etc/rc.d/rc6.d/K86unbound etc/rc.d/rc6.d/K87acpid etc/rc.d/rc6.d/K90sysklogd etc/rc.d/rc6.d/S60sendsignals diff --git a/config/rootfiles/common/armv5tel/initscripts b/config/rootfiles/common/armv5tel/initscripts index 260a961fef..8a025c3bfc 100644 --- a/config/rootfiles/common/armv5tel/initscripts +++ b/config/rootfiles/common/armv5tel/initscripts @@ -109,11 +109,11 @@ etc/rc.d/rc0.d/K51vnstat etc/rc.d/rc0.d/K77conntrackd etc/rc.d/rc0.d/K78suricata etc/rc.d/rc0.d/K79leds -etc/rc.d/rc0.d/K79unbound etc/rc.d/rc0.d/K80network etc/rc.d/rc0.d/K82wlanclient #etc/rc.d/rc0.d/K84bluetooth #etc/rc.d/rc0.d/K85messagebus +etc/rc.d/rc0.d/K86unbound etc/rc.d/rc0.d/K87acpid etc/rc.d/rc0.d/K90sysklogd etc/rc.d/rc0.d/S60sendsignals @@ -162,11 +162,11 @@ etc/rc.d/rc6.d/K51vnstat etc/rc.d/rc6.d/K77conntrackd etc/rc.d/rc6.d/K78suricata etc/rc.d/rc6.d/K79leds -etc/rc.d/rc6.d/K79unbound etc/rc.d/rc6.d/K80network etc/rc.d/rc6.d/K82wlanclient #etc/rc.d/rc6.d/K84bluetooth #etc/rc.d/rc6.d/K85messagebus +etc/rc.d/rc6.d/K86unbound etc/rc.d/rc6.d/K87acpid etc/rc.d/rc6.d/K90sysklogd etc/rc.d/rc6.d/S60sendsignals diff --git a/config/rootfiles/common/i586/initscripts b/config/rootfiles/common/i586/initscripts index d74fb743b8..4349cd6187 100644 --- a/config/rootfiles/common/i586/initscripts +++ b/config/rootfiles/common/i586/initscripts @@ -108,11 +108,11 @@ etc/rc.d/rc0.d/K51vnstat etc/rc.d/rc0.d/K77conntrackd etc/rc.d/rc0.d/K78suricata etc/rc.d/rc0.d/K79leds -etc/rc.d/rc0.d/K79unbound etc/rc.d/rc0.d/K80network etc/rc.d/rc0.d/K82wlanclient #etc/rc.d/rc0.d/K84bluetooth #etc/rc.d/rc0.d/K85messagebus +etc/rc.d/rc0.d/K86unbound etc/rc.d/rc0.d/K87acpid etc/rc.d/rc0.d/K90sysklogd etc/rc.d/rc0.d/S60sendsignals @@ -161,11 +161,11 @@ etc/rc.d/rc6.d/K51vnstat etc/rc.d/rc6.d/K77conntrackd etc/rc.d/rc6.d/K78suricata etc/rc.d/rc6.d/K79leds -etc/rc.d/rc6.d/K79unbound etc/rc.d/rc6.d/K80network etc/rc.d/rc6.d/K82wlanclient #etc/rc.d/rc6.d/K84bluetooth #etc/rc.d/rc6.d/K85messagebus +etc/rc.d/rc6.d/K86unbound etc/rc.d/rc6.d/K87acpid etc/rc.d/rc6.d/K90sysklogd etc/rc.d/rc6.d/S60sendsignals diff --git a/config/rootfiles/common/x86_64/initscripts b/config/rootfiles/common/x86_64/initscripts index d74fb743b8..4349cd6187 100644 --- a/config/rootfiles/common/x86_64/initscripts +++ b/config/rootfiles/common/x86_64/initscripts @@ -108,11 +108,11 @@ etc/rc.d/rc0.d/K51vnstat etc/rc.d/rc0.d/K77conntrackd etc/rc.d/rc0.d/K78suricata etc/rc.d/rc0.d/K79leds -etc/rc.d/rc0.d/K79unbound etc/rc.d/rc0.d/K80network etc/rc.d/rc0.d/K82wlanclient #etc/rc.d/rc0.d/K84bluetooth #etc/rc.d/rc0.d/K85messagebus +etc/rc.d/rc0.d/K86unbound etc/rc.d/rc0.d/K87acpid etc/rc.d/rc0.d/K90sysklogd etc/rc.d/rc0.d/S60sendsignals @@ -161,11 +161,11 @@ etc/rc.d/rc6.d/K51vnstat etc/rc.d/rc6.d/K77conntrackd etc/rc.d/rc6.d/K78suricata etc/rc.d/rc6.d/K79leds -etc/rc.d/rc6.d/K79unbound etc/rc.d/rc6.d/K80network etc/rc.d/rc6.d/K82wlanclient #etc/rc.d/rc6.d/K84bluetooth #etc/rc.d/rc6.d/K85messagebus +etc/rc.d/rc6.d/K86unbound etc/rc.d/rc6.d/K87acpid etc/rc.d/rc6.d/K90sysklogd etc/rc.d/rc6.d/S60sendsignals diff --git a/config/rootfiles/core/136/update.sh b/config/rootfiles/core/136/update.sh index 2de4cf5b8f..7dcf87b62a 100644 --- a/config/rootfiles/core/136/update.sh +++ b/config/rootfiles/core/136/update.sh @@ -55,6 +55,10 @@ ldconfig # Update Language cache /usr/local/bin/update-lang-cache +# move unbound down after network down +mv /etc/rc.d/rc0.d/K79unbound /etc/rc.d/rc0.d/K86unbound +mv /etc/rc.d/rc6.d/K79unbound /etc/rc.d/rc6.d/K86unbound + # Start services # This update needs a reboot... diff --git a/lfs/initscripts b/lfs/initscripts index 68cab0ba2b..d74e0c6509 100644 --- a/lfs/initscripts +++ b/lfs/initscripts @@ -126,9 +126,9 @@ $(TARGET) : ln -sf ../init.d/network /etc/rc.d/rc0.d/K80network ln -sf ../init.d/network /etc/rc.d/rc3.d/S20network ln -sf ../init.d/network /etc/rc.d/rc6.d/K80network - ln -sf ../init.d/unbound /etc/rc.d/rc0.d/K79unbound + ln -sf ../init.d/unbound /etc/rc.d/rc0.d/K86unbound ln -sf ../init.d/unbound /etc/rc.d/rc3.d/S11unbound - ln -sf ../init.d/unbound /etc/rc.d/rc6.d/K79unbound + ln -sf ../init.d/unbound /etc/rc.d/rc6.d/K86unbound ln -sf ../init.d/random /etc/rc.d/rc0.d/K45random ln -sf ../init.d/random /etc/rc.d/rc3.d/S00random ln -sf ../init.d/random /etc/rc.d/rc6.d/K45random -- 2.39.2