diff options
author | Maurice van der Pot <griffon26@gentoo.org> | 2005-07-07 16:26:01 +0000 |
---|---|---|
committer | Maurice van der Pot <griffon26@gentoo.org> | 2005-07-07 16:26:01 +0000 |
commit | 5b146b4ea2b437b65fb27cfbd4e610bbca3ab0c4 (patch) | |
tree | d538f4c6fcb2857d373d20b4442c77e49eacd562 /net-fs/coda/files | |
parent | Marked stable on x86 for coda 6.0.10 (diff) | |
download | gentoo-2-5b146b4ea2b437b65fb27cfbd4e610bbca3ab0c4.tar.gz gentoo-2-5b146b4ea2b437b65fb27cfbd4e610bbca3ab0c4.tar.bz2 gentoo-2-5b146b4ea2b437b65fb27cfbd4e610bbca3ab0c4.zip |
Marked coda 6.0.10 stable on x86
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'net-fs/coda/files')
-rw-r--r-- | net-fs/coda/files/6.0.11/venus | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-fs/coda/files/6.0.11/venus b/net-fs/coda/files/6.0.11/venus new file mode 100644 index 000000000000..95a9c099d793 --- /dev/null +++ b/net-fs/coda/files/6.0.11/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.11/venus,v 1.1 2005/07/07 16:26:01 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 $? +} |