summaryrefslogtreecommitdiffstats
path: root/misc/init.d/tru64
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/tru64
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/tru64')
-rw-r--r--misc/init.d/tru64/zabbix_server56
1 files changed, 56 insertions, 0 deletions
diff --git a/misc/init.d/tru64/zabbix_server b/misc/init.d/tru64/zabbix_server
new file mode 100644
index 00000000..bf5b561b
--- /dev/null
+++ b/misc/init.d/tru64/zabbix_server
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# ZABBIX
+# Copyright (C) 2000-2005 SIA Zabbix
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+# Start/Stop the secure shell daemon.
+# Place a startup script in /sbin/init.d, and link to it from /sbin/rc[023].d
+
+SERVICE="ZABBIX server"
+DAEMON=/usr/local/bin/zabbix_server
+PIDFILE=/tmp/zabbix_server.pid
+
+case $1 in
+ 'start')
+ if [ -x ${DAEMON} ]
+ then
+ $DAEMON
+ # Error checking here would be good...
+ echo "${SERVICE} started."
+ else
+ echo "Can't find file ${DAEMON}."
+ echo "${SERVICE} NOT started."
+ fi
+ ;;
+ 'stop')
+ if [ -s ${PIDFILE} ]
+ then
+ if kill `cat ${PIDFILE}` >/dev/null 2>&1
+ then
+ echo "${SERVICE} terminated."
+ rm -f ${PIDFILE}
+ fi
+ fi
+ ;;
+ 'restart')
+ $0 stop
+ $0 start
+ ;;
+ *)
+ echo "Usage: $0 start|stop|restart"
+ ;;
+esac