Thank you very much!
After looking at this closer, I also found the reason to what you're saying (just incase for others who are wondering):
If you look at the rc scripts, for example: /sbin/rc2
...there's a segment in that scripts that goes like this:
for f in /etc/rc2.d/S*; do
if [ -s $f ]; then
case $f in
*.sh) . $f ;;
*) /sbin/sh $f start ;;
As you can see, things that end in .sh are sourced in /sbin/rc2's /sbin/sh instance, and files that don't are force executed with /sbin/sh.
It now makes sense that you'd have to use a Born script to call a Korn script from rc#.d directories. So in my case, I simply moved my korn script (/etc/rc3.d/S99myscript
) to /etc/init.d/myscript
and created a new /etc/rc3.d/S99myscript
that had this line in it: