Adrian Merrall wrote:
On Unix/Linux I have modded the startud/stopud script in $UDTBIN but of course I will have to redo after each upgrade. It would be nice if the startud/stopud scripts provided an options for us to specify any scripts we wanted to run after startup/before shutdown (e.g. startud -x myscript.sh or stopud -x myscript.sh). No idea on windows I'm afraid but if there is a BAT that starts and stops you could modify that.
On linux you can create a script in the /etc/init.d directory, then use chkconfig --add to add it to the system startup/shutdown process. chkconfig uses startup and shutdown precedence numbers to determine the order of startup/shutdown. You just need to make sure a UD dependent startup script has a higher startup number and a lower shutdown number than the UD startup/shutdown script. However, UV's startup number is 999 and shutdown number is 01, and assuming UD's is also, this could present a problem. I'm guessing that scripts with identical numbers are run in alpha order, but I've not tested this.
The precedence numbers and appropriate runlevels are defined on a comment line in the top of the init.d script itself. See the chkconfig man page for specifics.
-John -- John Hester System & Network Administrator Momentum Group Inc. (949) 833-8886 x623 http://memosamples.com ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
