summaryrefslogtreecommitdiffstats
path: root/misc/init.d/gentoo
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-28 13:32:10 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-05-28 13:32:10 +0000
commit3442ec61fa38eea4e68a3edea4ea3225ff78c8a0 (patch)
tree3ebf399a0be7c8ca22745e08ae2c0b4e300a86e5 /misc/init.d/gentoo
parentfb8127285b3156270151079a29825130cf85d524 (diff)
downloadzabbix-3442ec61fa38eea4e68a3edea4ea3225ff78c8a0.tar.gz
zabbix-3442ec61fa38eea4e68a3edea4ea3225ff78c8a0.tar.xz
zabbix-3442ec61fa38eea4e68a3edea4ea3225ff78c8a0.zip
- modifed startup scripts (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@4187 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'misc/init.d/gentoo')
-rw-r--r--misc/init.d/gentoo/zabbix-agentd6
-rw-r--r--misc/init.d/gentoo/zabbix-server (renamed from misc/init.d/gentoo/zabbix-suckerd)8
-rw-r--r--misc/init.d/gentoo/zabbix-trapperd34
3 files changed, 7 insertions, 41 deletions
diff --git a/misc/init.d/gentoo/zabbix-agentd b/misc/init.d/gentoo/zabbix-agentd
index 1a163d87..f2e4f9dd 100644
--- a/misc/init.d/gentoo/zabbix-agentd
+++ b/misc/init.d/gentoo/zabbix-agentd
@@ -3,10 +3,10 @@
# Zabbix agent start/stop script.
#
# Written by A.Tophofen
-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
-DAEMON=/home/zabbix/bin/zabbix_agentd
NAME=zabbix_agentd
-DESC="Zabbix 1.0"
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
+DAEMON=/home/zabbix/bin/${NAME}
+DESC="Zabbix 1.4"
PID=/home/zabbix/lock/$NAME.pid
diff --git a/misc/init.d/gentoo/zabbix-suckerd b/misc/init.d/gentoo/zabbix-server
index da6b79c7..61ffc873 100644
--- a/misc/init.d/gentoo/zabbix-suckerd
+++ b/misc/init.d/gentoo/zabbix-server
@@ -1,12 +1,12 @@
#!/sbin/runscript
#
-# Zabbix suckerdd start/stop script.
+# Zabbix server start/stop script.
#
# Written by A.Tophofen
+NAME=zabbix_server
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
-DAEMON=/home/zabbix/bin/zabbix_suckerd
-NAME=zabbix_suckerd
-DESC="Zabbix 1.0"
+DAEMON=/home/zabbix/bin/${NAME}
+DESC="Zabbix 1.4"
PID=/home/zabbix/lock/$NAME.pid
diff --git a/misc/init.d/gentoo/zabbix-trapperd b/misc/init.d/gentoo/zabbix-trapperd
deleted file mode 100644
index abb3a9d2..00000000
--- a/misc/init.d/gentoo/zabbix-trapperd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/runscript
-#
-# Zabbix trapperd start/stop script.
-#
-# Written by A.Tophofen
-PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin
-DAEMON=/home/zabbix/bin/zabbix_trapperd
-NAME=zabbix_trapperd
-DESC="Zabbix 1.0"
-PID=/home/zabbix/lock/$NAME.pid
-
-
-
-opts="${opts} reload"
-
-
-depend() {
- need net
-}
-
-start() {
- ebegin "Starting $DESC: $NAME"
- start-stop-daemon --start --pidfile $PID \
- --exec $DAEMON
- eend
-}
-stop() {
- ebegin "Stopping $DESC: $NAME"
- start-stop-daemon --stop --pidfile $PID \
- --exec $DAEMON
- eend
-}
-
-