3 # Starts the zabbix_proxy daemon
7 # description: zabbix_proxy long service description
9 # processname: zabbix_proxy
11 # Source function library
12 . /etc/rc.d/init.d/functions
15 . /etc/sysconfig/network
17 # Check that networking is up.
18 if is_yes "${NETWORKING}"; then
19 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
20 msg_network_down "Zabbix Proxy"
27 # Get service config - may override defaults
28 [ -f /etc/sysconfig/zabbix_proxy ] && . /etc/sysconfig/zabbix_proxy
30 pidfile="/var/run/zabbix/zabbix_proxy.pid"
33 # Check if the service is already running?
34 if [ -f /var/lock/subsys/zabbix_proxy ]; then
35 msg_already_running "Zabbix Proxy"
39 msg_starting "Zabbix Proxy"
40 daemon /usr/sbin/zabbix_proxy
42 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/zabbix_proxy
46 if [ ! -f /var/lock/subsys/zabbix_proxy ]; then
47 msg_not_running "Zabbix Proxy"
52 msg_stopping "Zabbix Proxy"
53 killproc --pidfile $pidfile zabbix_proxy -TERM
54 rm -f /var/lock/subsys/zabbix_proxy
58 if [ ! -f /var/lock/subsys/zabbix_proxy ]; then
59 msg_not_running "Zabbix Proxy"
69 # See how we were called.
88 status --pidfile $pidfile zabbix_proxy
92 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"