diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-03-25 20:15:09 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2004-03-25 20:15:09 +0000 |
commit | d1c4a4d6ed4465ffe3086e6539c9fdb26179f70e (patch) | |
tree | de85462a9832c5929dc78a3d50b7a237a94e2d68 /misc/init.d/gentoo | |
parent | a84dab5580787c48fc4e02c39d9429a078bb119b (diff) | |
download | zabbix-d1c4a4d6ed4465ffe3086e6539c9fdb26179f70e.tar.gz zabbix-d1c4a4d6ed4465ffe3086e6539c9fdb26179f70e.tar.xz zabbix-d1c4a4d6ed4465ffe3086e6539c9fdb26179f70e.zip |
- added Gentoo start-up scripts. Thanks to A.Tophofen. (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1307 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'misc/init.d/gentoo')
-rw-r--r-- | misc/init.d/gentoo/zabbix-agentd | 32 | ||||
-rw-r--r-- | misc/init.d/gentoo/zabbix-suckerd | 34 | ||||
-rw-r--r-- | misc/init.d/gentoo/zabbix-trapperd | 34 |
3 files changed, 100 insertions, 0 deletions
diff --git a/misc/init.d/gentoo/zabbix-agentd b/misc/init.d/gentoo/zabbix-agentd new file mode 100644 index 00000000..1a163d87 --- /dev/null +++ b/misc/init.d/gentoo/zabbix-agentd @@ -0,0 +1,32 @@ +#!/sbin/runscript +# +# 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" +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 +} diff --git a/misc/init.d/gentoo/zabbix-suckerd b/misc/init.d/gentoo/zabbix-suckerd new file mode 100644 index 00000000..da6b79c7 --- /dev/null +++ b/misc/init.d/gentoo/zabbix-suckerd @@ -0,0 +1,34 @@ +#!/sbin/runscript +# +# Zabbix suckerdd start/stop script. +# +# Written by A.Tophofen +PATH=/bin:/usr/bin:/sbin:/usr/sbin:/home/zabbix/bin +DAEMON=/home/zabbix/bin/zabbix_suckerd +NAME=zabbix_suckerd +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 +} + + diff --git a/misc/init.d/gentoo/zabbix-trapperd b/misc/init.d/gentoo/zabbix-trapperd new file mode 100644 index 00000000..abb3a9d2 --- /dev/null +++ b/misc/init.d/gentoo/zabbix-trapperd @@ -0,0 +1,34 @@ +#!/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 +} + + |