|
From: Heiko Z. <smi...@us...> - 2004-03-20 16:27:59
|
Update of /cvsroot/devil-linux/build/scripts/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6728/scripts/scripts Added Files: frox ser Log Message: initial checkin of frox and sip --- NEW FILE: frox --- #!/bin/bash # # $Source: /cvsroot/devil-linux/build/scripts/scripts/frox,v $ # $Revision: 1.1 $ # $Date: 2004/03/20 16:18:01 $ # # http://www.devil-linux.org # ### BEGIN INIT INFO # Provides: frox # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 3 5 # Default-Stop: 0 1 6 # Description: starts frox ### END INIT INFO # settings source /etc/sysconfig/config # parameters NAME="FROX" CONFIGNAME=FROX DAEMON=/usr/sbin/frox PARAMETER="-f /etc/frox.conf" # source function library source /etc/init.d/functions eval START=\$START_$CONFIGNAME # Determine the base and follow a runlevel link name. base=${0##*/} link=${base#*[SK][0-9][0-9]} # Force execution if not called by a runlevel directory. test $link = $base && START=yes test "$START" = "yes" || exit 0 if [ ! -e $DAEMON ]; then echo echo "$DAEMON not found. Did you install the package?" exit 1 fi case "$1" in start) echo -n "Starting $NAME: " loadproc $DAEMON $PARAMETER ;; stop) echo -n "Shutting down $NAME: " killproc $DAEMON ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac --- NEW FILE: ser --- #!/bin/bash # # $Source: /cvsroot/devil-linux/build/scripts/scripts/ser,v $ # $Revision: 1.1 $ # $Date: 2004/03/20 16:18:01 $ # # http://www.devil-linux.org # ### BEGIN INIT INFO # Provides: ser # Required-Start: $network $syslog # Required-Stop: $network $syslog # Default-Start: 3 5 # Default-Stop: 0 1 6 # Description: starts SIP Express Router (ser) ### END INIT INFO # settings source /etc/sysconfig/config # parameters NAME="SER" CONFIGNAME=SER DAEMON=/usr/sbin/ser PARAMETER="-f /etc/ser/ser.cfg" # source function library source /etc/init.d/functions eval START=\$START_$CONFIGNAME # Determine the base and follow a runlevel link name. base=${0##*/} link=${base#*[SK][0-9][0-9]} # Force execution if not called by a runlevel directory. test $link = $base && START=yes test "$START" = "yes" || exit 0 if [ ! -e $DAEMON ]; then echo echo "$DAEMON not found. Did you install the package?" exit 1 fi case "$1" in start) echo -n "Starting $NAME: " loadproc $DAEMON $PARAMETER ;; stop) echo -n "Shutting down $NAME: " killproc $DAEMON ;; restart) $0 stop sleep 1 $0 start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac |