Skip to content

Commit f4a604f

Browse files
committed
Prevent non-essential services from running in runlevels > 6
In case failure-config fails to load, we park the system in runlevel 9. In this state, we only want the most essential services running.
1 parent 445fbf7 commit f4a604f

File tree

29 files changed

+30
-30
lines changed

29 files changed

+30
-30
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set G_MESSAGES_DEBUG=nocolor
2-
service [2345789] <service/dbus/running> \
2+
service [2345] <service/dbus/running> \
33
env:-/etc/default/rauc log:prio:user.notice \
44
rauc service $RAUC_ARGS -- Software update service
55

package/confd/confd.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ run name:error :1 log:console norestart if:<run/bootstrap/failure> \
88
[S] /usr/libexec/confd/error --
99

1010
service name:confd log <run/bootstrap/success> \
11-
[S12345789] sysrepo-plugind -f -p /run/confd.pid -n -v3 -- Configuration daemon
11+
[S12345] sysrepo-plugind -f -p /run/confd.pid -n -v3 -- Configuration daemon
1212

1313
# Bootstrap system with startup-config
1414
run name:startup log:prio:user.notice norestart <pid/confd> \
@@ -24,7 +24,7 @@ run name:error :2 log:console norestart if:<run/failure/failure> \
2424
[S] /usr/libexec/confd/error --
2525

2626
service name:netopeer notify:none log <pid/confd> \
27-
[12345789] netopeer2-server -F -t 60 \
27+
[12345] netopeer2-server -F -t 60 \
2828
-- NETCONF server
2929

3030
# Create initial /etc/resolv.conf after successful bootstrap

package/klish/klish.svc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service <!> log [2345789] /usr/bin/klishd -d -- CLI backend daemon
1+
service <!> log [2345] /usr/bin/klishd -d -- CLI backend daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [2345789] avahi-dnsconfd -s -- Avahi unicast DNS configuration daemon
1+
service [2345] avahi-dnsconfd -s -- Avahi unicast DNS configuration daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [2345789] name:mdns avahi-daemon -s -- Avahi mDNS-SD daemon
1+
service [2345] name:mdns avahi-daemon -s -- Avahi mDNS-SD daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Requires /etc/chrony.conf to start, see https://chrony.tuxfamily.org/doc/3.4/chrony.conf.html
2-
service [2345789] <!> env:-/etc/default/chronyd chronyd -n $CHRONY_ARGS -- Chrony NTP v3/v4 daemon
2+
service [2345] <!> env:-/etc/default/chronyd chronyd -n $CHRONY_ARGS -- Chrony NTP v3/v4 daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [2345789] env:-/etc/default/conntrackd conntrackd $CONNTRACKD_ARGS -- Connection tracking daemon
1+
service [2345] env:-/etc/default/conntrackd conntrackd $CONNTRACKD_ARGS -- Connection tracking daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [S12345789] <pid/syslogd> dnsmasq -k -u root -- DHCP/DNS proxy
1+
service [S12345] <pid/syslogd> dnsmasq -k -u root -- DHCP/DNS proxy
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [2345789] log:null <!pid/zebra> babled -A 127.0.0.1 -u frr -g frr -- Babel routing daemon
1+
service [2345] log:null <!pid/zebra> babled -A 127.0.0.1 -u frr -g frr -- Babel routing daemon
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
service [2345789] log:null <!pid/zebra> bfdd -A 127.0.0.1 -u frr -g frr -- BFD daemon
1+
service [2345] log:null <!pid/zebra> bfdd -A 127.0.0.1 -u frr -g frr -- BFD daemon

0 commit comments

Comments
 (0)