summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/vstatd-svn/files/vstatd-initd')
-rw-r--r--sys-cluster/vstatd-svn/files/vstatd-initd32
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-cluster/vstatd-svn/files/vstatd-initd b/sys-cluster/vstatd-svn/files/vstatd-initd
new file mode 100644
index 0000000..f7ae5d1
--- /dev/null
+++ b/sys-cluster/vstatd-svn/files/vstatd-initd
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ after vcd
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+
+ if [[ -f "/var/run/${SVCNAME}.pid" ]] ; then
+ rm -f "/var/run/${SVCNAME}.pid"
+ fi
+
+ start-stop-daemon \
+ --start \
+ --pidfile "/var/run/${SVCNAME}.pid" \
+ --exec /usr/sbin/vstatd
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+
+ start-stop-daemon \
+ --stop \
+ --pidfile "/var/run/${SVCNAME}.pid" \
+ --exec /usr/sbin/vstatd
+ eend $?
+}