Monday, September 25, 2006
Shell Script to Bounce resin and Apache eligently
bash-2.05b$ more /etc/init.d/webfe
#!/bin/sh
# Startup script for syndicated services web front end
#
. /home/syndprod/.profile
case "$1" in
start)
/opt/oracle/Apache/Apache/bin/apachectl start
su syndprod -c "/internet/apps/resin/bin/httpd.sh start"
;;
stop)
/opt/oracle/Apache/Apache/bin/apachectl stop
su syndprod -c "/internet/apps/resin/bin/httpd.sh stop"
;;
restart)
/opt/oracle/Apache/Apache/bin/apachectl restart
su syndprod -c "/internet/apps/resin/bin/httpd.sh stop"
su syndprod -c "/internet/apps/resin/bin/httpd.sh start"
;;
condrestart)
;;
*)
echo $"Usage: -zsh {start|stop|restart}"
exit 1
esac
exit 0
Subscribe to:
Comments (Atom)