We have a database and 3rd party application that both get shutdown and
started via cron. The database is
started/stopped by one users cron, the 3rd party application
started/stopped by another users cron. There have been
numerous problems with this arrangement, and I'd like to have a script
(run by root crontab) be a wrapper that calls
the startup/shutdown scripts for both the database and 3rd party app.
This way I can use error checking to prevent
the 3rd party app from starting if the database fails to start.
Question: What is the easiest way to accomplish this? Should I set uid
on the scripts to run as the owner, or
use su - username within the script?
This is a ksh script.
Thanks!
Received on Wed Apr 22 1998 - 06:34:33 NZST