summaryrefslogtreecommitdiffstats
path: root/zabbix-agent/zabbix-agentd
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-12-16 11:51:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-12-16 11:51:24 +0100
commitc6000c9d9949b3326fb82f02431899ab6774b960 (patch)
tree2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /zabbix-agent/zabbix-agentd
parent453f0f12918af35bd8e1e5f049841360f37d62e4 (diff)
downloadaur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz
aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz
big cleanup
Diffstat (limited to 'zabbix-agent/zabbix-agentd')
-rw-r--r--zabbix-agent/zabbix-agentd53
1 files changed, 0 insertions, 53 deletions
diff --git a/zabbix-agent/zabbix-agentd b/zabbix-agent/zabbix-agentd
deleted file mode 100644
index dc31c8e..0000000
--- a/zabbix-agent/zabbix-agentd
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-#
-# Source function library.
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-# Check that networking is up.
-if ck_daemon network; then
- echo "Cannot run zabbix-agent without network - run network first"
- exit
-fi
-
-
-start () {
- stat_busy "Starting zabbix-agent"
- /usr/sbin/zabbix_agentd &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon zabbix_agentd
- stat_done
- fi
- }
-
-stop() {
- stat_busy "Stopping zabbix-agent"
- killall zabbix_agentd
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon zabbix_agentd
- stat_done
- fi
- }
-
-# See how we were called.
-case $1 in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- *)
- echo $"Usage: zabbix-agent {start|stop|restart}"
- exit 1
- esac
-
-exit $RETVAL