diff options
Diffstat (limited to 'sys-cluster/vstatd-svn/files')
-rw-r--r-- | sys-cluster/vstatd-svn/files/digest-vstatd-svn-9999 | 1 | ||||
-rw-r--r-- | sys-cluster/vstatd-svn/files/vstatd-initd | 32 |
2 files changed, 32 insertions, 1 deletions
diff --git a/sys-cluster/vstatd-svn/files/digest-vstatd-svn-9999 b/sys-cluster/vstatd-svn/files/digest-vstatd-svn-9999 index 8b13789..e69de29 100644 --- a/sys-cluster/vstatd-svn/files/digest-vstatd-svn-9999 +++ b/sys-cluster/vstatd-svn/files/digest-vstatd-svn-9999 @@ -1 +0,0 @@ - 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 $? +} |