diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-11-14 12:51:59 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-11-14 12:51:59 +0000 |
commit | 6f41480ba8e7a6be09b4252239ac91d40216d2f5 (patch) | |
tree | d0a30c5cd310e4ab4246fe079e650cac069b1f44 /misc | |
parent | c6b0d3645d209172deec53fd9ee168a70ddd2ad1 (diff) | |
download | zabbix-6f41480ba8e7a6be09b4252239ac91d40216d2f5.tar.gz zabbix-6f41480ba8e7a6be09b4252239ac91d40216d2f5.tar.xz zabbix-6f41480ba8e7a6be09b4252239ac91d40216d2f5.zip |
- updated RedHat start-up scripts in misc/init.d/redhat. Thanks
to Charlie. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1025 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/init.d/redhat/zabbix_agentd_ctl | 15 | ||||
-rwxr-xr-x | misc/init.d/redhat/zabbix_suckerd_ctl | 13 |
2 files changed, 13 insertions, 15 deletions
diff --git a/misc/init.d/redhat/zabbix_agentd_ctl b/misc/init.d/redhat/zabbix_agentd_ctl index ca74a785..fddd3402 100755 --- a/misc/init.d/redhat/zabbix_agentd_ctl +++ b/misc/init.d/redhat/zabbix_agentd_ctl @@ -2,10 +2,14 @@ # # zabbix_agentd_ctl # -# control script to stop/start/restart zabbix_suckerd +# control script to stop/start/restart zabbix_agentd # author: charlie collins # date: 01.21.2002 # +# revised 09.21.2003 +# (setup for Red Hat 7.3 with Zabbix 1.0 beta) +# (should work for other Red Hat and Sys V style init machines as well) +# # (modeled after apache style control scripts) # (this script can be placed in init.d and respective runlevel for startup usage) # @@ -30,8 +34,8 @@ # base zabbix dir BASEDIR=/opt/zabbix -# PID file (PID FILE NOT CURRENTLY SET - NEEDS TO BE, THIS IS FOR FUTURE USE) -PIDFILE=$BASEDIR/bin/zabbix_agentd.pid +# pid file (as of 1.0 beta 10) +PIDFILE=/var/tmp/zabbix_agentd.pid # binary file ZABBIX_AGENTD=$BASEDIR/bin/zabbix_agentd @@ -47,11 +51,6 @@ if [ "x$ARGV" = "x" ] ; then ARGS="help" fi -# establish PIDs -# for now - ultimately PIDFILE should be implemented and managed in zabbix_agentd binary -# output all process ids to PIDFILE manually -ps -ef | awk '/zabbix_agentd/ && !/zabbix_agentd_ctl/ && !/awk/ {print $2}' > $PIDFILE - # perform action based on args for ARG in $@ $ARGS diff --git a/misc/init.d/redhat/zabbix_suckerd_ctl b/misc/init.d/redhat/zabbix_suckerd_ctl index 196c64c9..7580690b 100755 --- a/misc/init.d/redhat/zabbix_suckerd_ctl +++ b/misc/init.d/redhat/zabbix_suckerd_ctl @@ -6,6 +6,10 @@ # author: charlie collins # date: 01.21.2002 # +# revised 09.21.2003 +# (setup for Red Hat 7.3 with Zabbix 1.0 beta) +# (should work for other Red Hat and Sys V style init machines as well) +# # (modeled after apache style control scripts) # (this script can be placed in init.d and respective runlevel for startup usage) # @@ -30,8 +34,8 @@ # base zabbix dir BASEDIR=/opt/zabbix -# PID file (PID FILE NOT CURRENTLY SET - NEEDS TO BE, THIS IS FOR FUTURE USE) -PIDFILE=$BASEDIR/bin/zabbix_suckerd.pid +# PID file +PIDFILE=/var/tmp/zabbix_suckerd.pid # binary file ZABBIX_SUCKERD=$BASEDIR/bin/zabbix_suckerd @@ -47,11 +51,6 @@ if [ "x$ARGV" = "x" ] ; then ARGS="help" fi -# establish PIDs -# for now - ultimately PIDFILE should be implemented and managed in zabbix_suckerd binary -# output all process ids to PIDFILE manually -ps -ef | awk '/zabbix_suckerd/ && !/zabbix_suckerd_ctl/ && !/awk/ {print $2}' > $PIDFILE - # perform action based on args for ARG in $@ $ARGS |