summaryrefslogtreecommitdiff
blob: 220f902824a9eb29841f18e9227b25113adf2dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/venus,v 1.1 2004/03/23 20:18:49 dragonheart Exp $

depend() {
	need net codasrv
}

checkconfig() {
	if [ ! -e /var/lib/vice/hostname ] ; then
		eerror "Please set up vice before starting the service..."
		return 1
	fi
}

start() {
	checkconfig || return 1

	ebegin "Starting venus"
	start-stop-daemon --start --quiet --exec /usr/sbin/venus --background
	eend $?
}

stop() {
	ebegin "Stopping venus"
	start-stop-daemon --stop --quiet --exec /usr/sbin/venus
	umount -l /mnt/coda &>/dev/null
	eend $?
}