Blame | Last modification | View Log | RSS feed
#!/bin/sh## $Id: zvbid.init.in,v 1.3 2004/10/04 20:48:58 mschimek Exp $# Startup script for the zvbi daemon, RedHat style.## This is just an example, it will not install. Packagers must# prepare an init script matching their system.## chkconfig: - 90 10# description: Proxy daemon to share a v4l vbi device between applications.#. /etc/init.d/functionsprefix=/usrexec_prefix=/usr[ -x /usr/sbin/zvbid ] || exit 1RETVAL=0start(){echo -n $"Starting vbi proxy daemon: "daemon zvbidRETVAL=$?echotouch /var/lock/subsys/zvbidreturn $RETVAL}stop(){echo -n $"Stopping vbi proxy daemon: "killproc zvbidechoRETVAL=$?rm -f /var/lock/subsys/zvbidreturn $RETVAL}restart(){stopstart}case "$1" instart)start;;stop)stop;;restart)restart;;status)status zvbid;;condrestart)[ -e /var/lock/subsys/zvbid ] && restart;;*)echo $"Usage: $0 {start|stop|status|restart|condrestart}"RETVAL=1esacexit $RETVAL