mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-31 13:03:02 +02:00
This makes it easier to add more scripts without having to update the finit config file, and it clarifies which of the scripts in /libexec/infix only execute at boot.
33 lines
1.2 KiB
Plaintext
33 lines
1.2 KiB
Plaintext
#set DEBUG=1
|
|
|
|
run name:bootstrap log:prio:user.notice norestart <usr/ixinit-done> \
|
|
[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:prio:daemon.err <run/bootstrap/success> \
|
|
[S12345] sysrepo-plugind -f -p /run/confd.pid -n -- 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
|