Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#!/bin/sh
2
#
3
# $Id: zvbid.init.in,v 1.3 2004/10/04 20:48:58 mschimek Exp $
4
# Startup script for the zvbi daemon, RedHat style.
5
#
6
# This is just an example, it will not install. Packagers must
7
# prepare an init script matching their system.
8
#
9
# chkconfig: - 90 10
10
# description: Proxy daemon to share a v4l vbi device between applications.
11
#
12
 
13
. /etc/init.d/functions
14
 
15
prefix=/usr
16
exec_prefix=/usr
17
 
18
[ -x /usr/sbin/zvbid ]  || exit 1
19
 
20
RETVAL=0
21
 
22
start(){
23
	echo -n $"Starting vbi proxy daemon: "
24
	daemon zvbid
25
	RETVAL=$?
26
	echo
27
	touch /var/lock/subsys/zvbid
28
	return $RETVAL
29
}
30
 
31
stop(){
32
	echo -n $"Stopping vbi proxy daemon: "
33
	killproc zvbid
34
	echo
35
	RETVAL=$?
36
	rm -f /var/lock/subsys/zvbid
37
	return $RETVAL
38
}
39
 
40
restart(){
41
	stop
42
	start
43
}
44
 
45
case "$1" in
46
	start)
47
		start
48
		;;
49
	stop)
50
		stop
51
		;;
52
	restart)
53
		restart
54
		;;
55
	status)
56
		status zvbid
57
		;;
58
	condrestart)
59
		[ -e /var/lock/subsys/zvbid ] && restart
60
		;;
61
	*)
62
		echo $"Usage: $0 {start|stop|status|restart|condrestart}"
63
		RETVAL=1
64
esac
65
 
66
exit $RETVAL