blob: 218364878fcfd2f81dd8463ac24d51fcc0c36dc8 (
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
31
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/files/6.0.10/venus,v 1.1.1.1 2005/11/30 09:45:49 chriswhite 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 $?
}
|