#!/bin/bash
case $1 in
start)
rcmysql start
rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsworker start
rcobsdispatcher start
rcobspublisher start
rcobswarden start
rcobssigner start
rclighttpd start
rcmemcached start
rchermes start
rcpostfix start
;;
stop)
rclighttpd stop
rcobspublisher stop
rcobsdispatcher stop
rcobsworker stop
rcobsscheduler stop
rcobssrcserver stop
rcobsrepserver stop
rcobssigner stop
rcobswarden stop
rcmysql stop
rcmemcached stop
rchermes stop
rcpostfix stop
;;
restart)
rcmysql restart
rcobsrepserver restart
rcobssrcserver restart
rcobsscheduler restart
rcobsworker restart
rcobsdispatcher restart
rcobspublisher restart
rcobswarden restart
rcobssigner restart
rclighttpd restart
rcmemcached restart
rchermes restart
rcpostfix restart
;;
*)
echo $"Usage:$0{start|stop|restart}"
exit 1
;;
esac
case $1 in
start)
rcmysql start
rcobsrepserver start
rcobssrcserver start
rcobsscheduler start
rcobsworker start
rcobsdispatcher start
rcobspublisher start
rcobswarden start
rcobssigner start
rclighttpd start
rcmemcached start
rchermes start
rcpostfix start
;;
stop)
rclighttpd stop
rcobspublisher stop
rcobsdispatcher stop
rcobsworker stop
rcobsscheduler stop
rcobssrcserver stop
rcobsrepserver stop
rcobssigner stop
rcobswarden stop
rcmysql stop
rcmemcached stop
rchermes stop
rcpostfix stop
;;
restart)
rcmysql restart
rcobsrepserver restart
rcobssrcserver restart
rcobsscheduler restart
rcobsworker restart
rcobsdispatcher restart
rcobspublisher restart
rcobswarden restart
rcobssigner restart
rclighttpd restart
rcmemcached restart
rchermes restart
rcpostfix restart
;;
*)
echo $"Usage:$0{start|stop|restart}"
exit 1
;;
esac