#!/bin/bash
#processname: zabbix_proxy
case $1 in
start)
echo -n "Starting zabbix_proxy"
/usr/local/zabbix/sbin/zabbix_proxy
echo " done"
;;
stop)
echo -n "Stopping zabbix_proxy"
killall -9 zabbix_proxy
echo " done"
;;
restart)
$0 stop
$0 start
;;
show)
ps -aux|grep zabbix_proxy
;;
*)
echo -n "Usage: $0 {start|stop|restart|show}"
;;
esac |
#!/bin/bash
#processname: zabbix_proxy
case $1 in
start)
echo -n "Starting zabbix_proxy"
/usr/local/zabbix/sbin/zabbix_proxy
echo " done"
;;
stop)
echo -n "Stopping zabbix_proxy"
killall -9 zabbix_proxy
echo " done"
;;
restart)
$0 stop
$0 start
;;
show)
ps -aux|grep zabbix_proxy
;;
*)
echo -n "Usage: $0 {start|stop|restart|show}"
;;
esac
暂时没有评论!