summaryrefslogtreecommitdiff
blob: 1a8d1045522602a5c61a0784f73deb75e360cd5b (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-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/webcdwriter/files/webcdwriter.rc,v 1.1 2005/06/10 18:24:46 pylon Exp $

depend() {
	need net
}

start() {
	ebegin "Starting CDWserver"
        for tool in cdrdao cdrecord mkisofs readcd
        do
            if [ -e /usr/bin/$tool ]
            then
                cp /usr/bin/$tool /var/CDWserver/bin
            fi
        done
	start-stop-daemon --start --quiet --pidfile /var/run/CDWserver.pid \
		--exec /usr/sbin/CDWserver
	eend $?
	touch /var/lock/subsys/CDWserver
}

stop() {
	ebegin "Stopping CDWserver"
	start-stop-daemon --stop --quiet --pidfile /var/run/CDWserver.pid
	eend $?
	rm -f /var/lock/subsys/CDWserver
}