obs服务起停急脚本

来源:互联网 发布:centos cacti 编辑:程序博客网 时间:2024/06/10 12:40
#!/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 

原创粉丝点击