Update of /cvsroot/freevo/freevo/boot
In directory sc8-pr-cvs1:/tmp/cvs-serv14026
Added Files:
recordserver recordserver_init
Removed Files:
record_server record_server_init
Log Message:
record_server was renamed to recordserver, making this less confusing.
--- NEW FILE: recordserver ---
#!/bin/bash
# chkconfig: 234 99 00
# description: A boot script for the Freevo record server.
#
# This file may be placed in your system's init.d startup directory and
# setup to start at the appropriate runlevels. You may instead use the
# record_server_init script to be run from init. Init will keep an eye
# on your process and restart it if it fails.
#
# There is a file called boot_config which can be found in the boot/
# directory of Freevo. This file should be copied to /etc/freevo/boot_config
# and edited to suit your needs.
#
# $Id: recordserver,v 1.1 2003/10/05 19:50:34 rshortt Exp $
# Get startup config file
test -f /etc/freevo/boot_config || exit 0
. /etc/freevo/boot_config
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
DAEMON_START="$FREEVO_HOME/freevo recordserver start"
DAEMON_STOP="$FREEVO_HOME/freevo recordserver stop"
NAME="record server"
test -f $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $NAME: "
$DAEMON_START 2>&1 > /dev/null
echo "done."
;;
stop)
echo -n "Stopping $NAME: "
$DAEMON_STOP 2>&1 > /dev/null
echo "done."
;;
status)
echo
echo "Possible process list, if any:"
echo
ps -ef | grep record_server | egrep -v 'start|stop|status|tail|less|grep'
;;
restart)
echo "Restarting..."
$0 stop
sleep 3
$0 start
;;
*)
echo "Usage: $0 {start|stop|status|restart}" >&2
exit 1
;;
esac
exit 0
--- NEW FILE: recordserver_init ---
#!/bin/bash
#
# A start script for the Freevo record server which may be used by init. Init
# has the ability to watchdog processes and restart them if they fail.
# To run this from init you may edit /etc/inittab and add a line with the
# syntax: 1-4 letter identifyer:runlevels to run at:respawn:command
#
# FV1:2345:respawn:/usr/local/freevo/boot/record_server_init
#
# Typing 'init q' will tell init to reread inittab so it can start this
# for you.
#
# Once init is running this for you and you simply wish to restart it then you
# only need to kill the process and init will start it back up. You may easily
# kill the process by running the record_server script with the stop argument:
#
# ./record_server stop
#
#
# There is a file called boot_config which can be found in the boot/
# directory of Freevo. This file should be copied to /etc/freevo/boot_config
# and edited to suit your needs.
#
# $Id: recordserver_init,v 1.1 2003/10/05 19:50:34 rshortt Exp $
# Get startup config file
test -f /etc/freevo/boot_config || exit 0
. /etc/freevo/boot_config
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
$FREEVO_HOME/freevo recordserver 2>&1 > /dev/null
sleep 6
--- record_server DELETED ---
--- record_server_init DELETED ---
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog