mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
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.
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
#set DEBUG=1
|
|
|
|
run name:bootstrap log:prio:user.notice norestart <pid/syslogd> \
|
|
[S] /usr/libexec/confd/bootstrap \
|
|
-- Bootstrapping YANG datastore
|
|
|
|
run name:error :1 log:console norestart if:<run/bootstrap/failure> \
|
|
[S] /usr/libexec/confd/error --
|
|
|
|
service name:confd log <run/bootstrap/success> \
|
|
[S12345] sysrepo-plugind -f -p /run/confd.pid -n -v3 -- Configuration daemon
|
|
|
|
# Bootstrap system with startup-config
|
|
run name:startup log:prio:user.notice norestart <pid/confd> \
|
|
[S] /usr/libexec/confd/load startup-config \
|
|
-- Loading startup-config
|
|
|
|
# Run if loading startup-config fails for some reason
|
|
run name:failure log:prio:user.critical norestart <pid/confd> if:<run/startup/failure> \
|
|
[S] /usr/libexec/confd/load failure-config \
|
|
-- Loading failure-config
|
|
|
|
run name:error :2 log:console norestart if:<run/failure/failure> \
|
|
[S] /usr/libexec/confd/error --
|
|
|
|
service name:netopeer notify:none log <pid/confd> \
|
|
[12345] netopeer2-server -F -t 60 \
|
|
-- NETCONF server
|
|
|
|
# Create initial /etc/resolv.conf after successful bootstrap
|
|
task name:resolv :conf norestart <pid/dnsmasq> if:<run/startup/success> \
|
|
[S] resolvconf -u -- Update DNS configuration
|