[99529] trunk/dports/net/zabbix2
eborisch at macports.org
eborisch at macports.org
Thu Nov 8 07:39:09 PST 2012
Revision: 99529
http://trac.macports.org//changeset/99529
Author: eborisch at macports.org
Date: 2012-11-08 07:39:09 -0800 (Thu, 08 Nov 2012)
Log Message:
-----------
Add missing files to zabbix2 port
Added Paths:
-----------
trunk/dports/net/zabbix2/files/
trunk/dports/net/zabbix2/files/zabbix_agentd.init
trunk/dports/net/zabbix2/files/zabbix_server.init
Copied: trunk/dports/net/zabbix2/files/zabbix_agentd.init (from rev 99495, trunk/dports/net/zabbix/files/zabbix_agentd.init)
===================================================================
--- trunk/dports/net/zabbix2/files/zabbix_agentd.init (rev 0)
+++ trunk/dports/net/zabbix2/files/zabbix_agentd.init 2012-11-08 15:39:09 UTC (rev 99529)
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ echo -n "Starting zabbix_agentd "
+ sudo -u zabbix __PREFIX__/sbin/zabbix/zabbix_agentd -c __PREFIX__/etc/zabbix/zabbix_agentd.conf
+ ;;
+
+ stop)
+ echo -n "Shutting down zabbix_agentd"
+ pid=`ps axc|awk "{if (\\$5==\"zabbix_agent\") print \\$1}"`
+ /bin/kill $pid
+ rm /var/tmp/zabbix_agentd.pid
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ status)
+ /bin/ps -ax |/usr/bin/grep zabbix_agentd
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+esac
+
Copied: trunk/dports/net/zabbix2/files/zabbix_server.init (from rev 99495, trunk/dports/net/zabbix/files/zabbix_server.init)
===================================================================
--- trunk/dports/net/zabbix2/files/zabbix_server.init (rev 0)
+++ trunk/dports/net/zabbix2/files/zabbix_server.init 2012-11-08 15:39:09 UTC (rev 99529)
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+case "$1" in
+ start)
+ echo -n "Starting zabbix_server - 60s start delay for SQL server to load during boot"
+ sleep 60
+ sudo -u zabbix __PREFIX__/sbin/zabbix/zabbix_server -c __PREFIX__/etc/zabbix/zabbix_server.conf
+ ;;
+
+ stop)
+ echo -n "Shutting down zabbix_server"
+ pid=`ps axc|awk "{if (\\$5==\"zabbix_server\") print \\$1}"`
+ /bin/kill $pid
+ rm /var/tmp/zabbix_server.pid
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ status)
+ /bin/ps -ax |/usr/bin/grep zabbix_server
+ ;;
+ *)
+ echo "Usage: $0 {start|stop|restart|status}"
+ exit 1
+esac
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121108/a39131cb/attachment.html>
More information about the macports-changes
mailing list