Start & Stop daemons in runlevels
I am experiencing a problem a problem trying to stop a daemon when the machine reboots or halts.
I have a script /etc/init.d/myprogram. This is then soft linked /etc/rc6.d/K99myprogram and /etc/rc0.d/K99myprogram. Within /etc/init.d, if I run "./myprogram stop," I see the script does go through the process of halting the process however, when I run reboot or halt the system, I don't see any behavior.
Any help would be greatly appreciated on how to resolve this issue.