I need to automate the start and stop of my custom apps. I tried putting S99* and K11* scripts in the rc.2 directories. The system shutdown stops everything properly but while coming back up it executed the stop apps scripts again. Any ideas ??
That is how AIX's rc script is designed. I looks for all K*'s and runs them first, then it runs S*'s. The thought is if you are changing run levels then it's best to stop and restart everything. The script isn't very intelligent so it doens't account for initial run versus actual rl change. You could always modify it to only do the kills only if this is an actual rl change.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.