On Fri, 03 Dec 2010 23:20:17 +0000, Keith Roberts wrote: > On Fri, 3 Dec 2010, m.roth at 5-cent.us > wrote: > [...] > Is this any good? > > #! /bin/bash > > # Bash script to perform a gracefull shutdown of apache web server # > called from /root/root-admin-scripts/databases/fedora-8-mysql/ # > backup-mysql-databases.php > # DO NOT DELETE! > #------------------------------------------------------# > > # seconds to wait for apache to shutdown APACHE_GRACE_TIME=10 > > # output the current version of apache apachectl -v > echo "" > > # gracefully shut-down the apache web server apachectl graceful-stop > > echo "Shutting down Apache web server..." echo "Waiting > $APACHE_GRACE_TIME seconds for Apache web server to finish..." > > # wait for apache to shutdown properly sleep $APACHE_GRACE_TIME > > exit 0 > > #------------------------------------------------------# > > I wanted to shutdown Apache so it was not updating MySQL databases when > the backup script ran ;) > > Regards, > > Keith Roberts I could write a script that shuts down my client and then calls shutdown, but I was hoping to call a script from the shutdown procedure that would complete before the rest of the shutdown. Mike.