Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 193012 | Differences between
and this patch

Collapse All | Expand All

(-)coda-6.9.2.old/coda-src/scripts/Makefile.am (-9 / +3 lines)
Lines 8-16 Link Here
8
sbin_SCRIPTS += venus-setup
8
sbin_SCRIPTS += venus-setup
9
dist_sbin_SCRIPTS += volmunge
9
dist_sbin_SCRIPTS += volmunge
10
dist_man_MANS += venus-setup.8 volmunge.8
10
dist_man_MANS += venus-setup.8 volmunge.8
11
if SYSVINIT
11
dist_init_SCRIPTS += venus
12
dist_init_SCRIPTS += venus.init
13
endif
14
endif
12
endif
15
if BUILD_SERVER
13
if BUILD_SERVER
16
sbin_SCRIPTS += bldvldb.sh createvol_rep purgevol_rep startserver vice-setup \
14
sbin_SCRIPTS += bldvldb.sh createvol_rep purgevol_rep startserver vice-setup \
Lines 20-30 Link Here
20
		     vice-setup-srvdir vice-setup-user
18
		     vice-setup-srvdir vice-setup-user
21
dist_man_MANS += bldvldb.sh.8 createvol_rep.8 maxgroupid.5 purgevol_rep.8 \
19
dist_man_MANS += bldvldb.sh.8 createvol_rep.8 maxgroupid.5 purgevol_rep.8 \
22
		 startserver.8 vice-setup.8 volumelist.5
20
		 startserver.8 vice-setup.8 volumelist.5
23
if SYSVINIT
21
dist_init_SCRIPTS += auth2 codasrv updatecoda
24
dist_init_SCRIPTS += auth2.init codasrv.init update.init
25
else
26
dist_init_SCRIPTS += rc.vice
27
endif
28
endif
29
EXTRA_DIST = findparents.sh volinfo.pl volsizes.pl
22
EXTRA_DIST = findparents.sh volinfo.pl volsizes.pl
23
endif
30
24
(-)coda-6.9.2.old/coda-src/scripts/auth2 (+33 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: $
5
6
depend() {
7
	need net
8
	use logger
9
	after domainname
10
}
11
12
start() {
13
	if [ "`cat /var/lib/vice/hostname`" != "`cat /var/lib/vice/db/scm`" ]
14
	then
15
	    FLAGS="$FLAGS -chk "
16
	fi
17
18
19
	ebegin "Starting auth2"
20
	start-stop-daemon --start --background \
21
		--pidfile /var/lib/vice/auth2/pid \
22
		--make-pidfile --exec /usr/sbin/auth2 -- ${FLAGS}
23
	eend $?
24
}
25
26
stop() {
27
	ebegin "Stopping auth2"
28
	start-stop-daemon --stop \
29
		--pidfile /var/lib/vice/auth2/pid \
30
		--name auth2
31
	eend $?
32
}
33
(-)coda-6.9.2.old/coda-src/scripts/codasrv (+29 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: $
5
6
depend() {
7
	need net
8
	use logger
9
	after updatecoda
10
	after auth2
11
	after domainname
12
}
13
14
start() {
15
	ebegin "Starting codasrv"
16
	startserver
17
	eend $?
18
}
19
20
stop() {
21
	ebegin "Stopping codasrv"
22
	volutil shutdown
23
	eend $?
24
25
	ebegin "Waiting for coda to shutdown"
26
	sleep 20 # Allow coda to shutdown
27
	eend $?
28
}
29
(-)coda-6.9.2.old/coda-src/scripts/updatecoda (+37 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: $
5
6
depend() {
7
	need net
8
	use logger
9
	after auth2
10
	after domainname
11
}
12
13
start() {
14
	ebegin "Starting updatesrv"
15
	start-stop-daemon --start --background \
16
		--exec /usr/sbin/updatesrv
17
	eend $?
18
19
	ebegin "Starting updateclnt"
20
	start-stop-daemon --start --background \
21
		--exec /usr/sbin/updateclnt -- \
22
		-h `cat /var/lib/vice/db/scm` &
23
	eend $?
24
}
25
26
stop() {
27
	ebegin "Stopping updatesrv"
28
	start-stop-daemon --stop --pidfile /var/lib/vice/misc/updatesrv.pid \
29
		--name updatesrv
30
	eend $?
31
32
	ebegin "Stopping updateclnt"
33
	start-stop-daemon --stop --pidfile /var/lib/vice/misc/updateclnt.pid \
34
		--name updatesrv
35
	eend $?
36
}
37
(-)coda-6.9.2.old/coda-src/scripts/venus (+30 lines)
Line 0 Link Here
1
#!/sbin/runscript
2
# Copyright 1999-2007 Gentoo Foundation
3
# Distributed under the terms of the GNU General Public License v2
4
# $Header: $
5
6
depend() {
7
	need net
8
	after modules domainname
9
}
10
11
start() {
12
	ebegin "Starting venus"
13
	start-stop-daemon --start --background \
14
		--pidfile /var/lib/coda/venus.cache/pid \
15
		--make-pidfile --exec /usr/sbin/venus
16
	eend $?
17
}
18
19
stop() {
20
	ebegin "Stopping venus"
21
	start-stop-daemon --stop \
22
		--pidfile /var/lib/coda/venus.cache/pid \
23
		--name venus
24
	eend $?
25
	
26
	ebegin "Unmounting /mnt/coda"
27
	umount /mnt/coda
28
	eend $?
29
}
30

Return to bug 193012