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