Reorganize; add a new service that actively keeps rc.d in sync with the real rootfs
This commit is contained in:
Cameron Thompson
2024-09-22 05:08:27 -04:00
parent 224f63c1a8
commit 5d92fdeadf
10 changed files with 277 additions and 87 deletions

View File

@@ -0,0 +1,20 @@
#!/bin/ash /etc/rc.common
START=04
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /usr/sbin/init-overlay-watchdog.sh
procd_set_param respawn 3600 5 5
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param pidfile /var/run/init-overlay-watchdog.pid
procd_set_param tracking
procd_close_instance
}
stop_service() {
echo "Stopping init-overlay-watchdog service"
# `procd` will handle stopping the service and its processes
}