I'm cleaning up some rc scripts and have a few questions.
Q: Why put the start stop script in the init.d directory instead
just linking the rc#.d/S & K scripts straight back to a file
in the project's directory tree? (One less system specific
file to add/remove at install/uninstall.) Similary, for AIX,
(the only OS I have to support which does not seem to have
a flavor of SysV'ish rc scripting) why not have the inittab
entry point directly to a start script in the project's
directories instead installing/removing /etc/rc.project.
I think I know the answer department:
Q: Is there a way for an application to get notification when
shutdown is first invoked? By default, humans typically get
a minute of grace to finish up. It would be nice if our
scheduler knew that a shutdown was coming in nnn seconds. It
could supspend dispatching new jobs and condition running jobs
to either finish up or get to a reasonable stopping point in
the alloted grace interval.
Any other pointers to rc scripting resources and/or tips
would be appreciated.
Cheers!
Rich
http://www.plustechnologies.com