summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/coda/files/6.0.12/venus')
-rw-r--r--net-fs/coda/files/6.0.12/venus31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-fs/coda/files/6.0.12/venus b/net-fs/coda/files/6.0.12/venus
new file mode 100644
index 000000000000..266142515006
--- /dev/null
+++ b/net-fs/coda/files/6.0.12/venus
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/6.0.12/venus,v 1.1 2005/09/25 14:12:26 griffon26 Exp $
+
+depend() {
+ need net
+ after codasrv
+}
+
+checkconfig() {
+ if ! /usr/sbin/codaconfedit venus.conf &>/dev/null; then
+ eerror "Please run venus-setup before starting the service..."
+ return 1
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting venus"
+ start-stop-daemon --start --quiet --exec /usr/sbin/venus > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping venus"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/venus
+ umount -l coda &>/dev/null
+ eend $?
+}