#!/bin/bash # # A start script for the Freevo webserver 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 # # FV2:2345:respawn:/usr/local/freevo/boot/webserver_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: # # ./webserver 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. # # The Freevo webserver may also be started as a plugin by having # plugin.activate('www') in your local_conf.py # # $Id: webserver_init 3579 2003-09-05 02:33:35Z rshortt $ # 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 webserver 2>&1 > /dev/null sleep 6