What happens to processes started by init through an init script, if that script does not have a corresponding K
entry in (for example) /etc/rc0.d/
?
For example, the following script started a daemonized process:
-rwxrwxr-x. 1 root root 3.3K Jul 16 11:48 /etc/rc3.d/S99foobar
There is no corresponding link (eg, /etc/rc0.d/K99foobar
) to handle terminating those processes at shutdown/reboot time.
Do these processes just receive a SIGTERM, followed by a SIGKILL, from init when they're the last things running? Or is init smart enough to call /etc/init.d/foobar stop
?