procd: implement runlevel 1
Username: Stijn Tintel
Origin: https://bugs.openwrt.org/index.php?do=details&task_id=609
Sysupgrade currently kills processes with SIGKILL if they don’t shut down within 3 seconds after the SIGTERM signal. Some processes (e.g. domoticz) can take longer than 3 seconds to properly shut down. As this can potentially corrupt the sqlite database, it should be avoided.
While talking about this on
IRC
, it was suggested we should implement an “init 1” equivalent in procd. Adding this ticket as a reminder.