# HG changeset patch # User renatofilho # Date 1187712882 -3600 # Node ID c404781fda4e035ba7bbd17f9e847620cd4d38ae # Parent 7f290a3a34b18e7b38e88ad32a2c7e3f1877a19e [svn r822] redirect log message on service diff -r 7f290a3a34b1 -r c404781fda4e gmyth-stream/server/0.3/data/gmsd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/server/0.3/data/gmsd Tue Aug 21 17:14:42 2007 +0100 @@ -0,0 +1,61 @@ +#!/bin/sh + +PROGRAM_NAME=GMS +PROGRAM_BIN=/usr/bin/gms.py +PIDFILE=/var/run/gms.pid +LOGFILE=/var/log/gms.log + +test -x $PROGRAM_BIN || exit 0 + +set -e + +. /lib/lsb/init-functions +. /etc/default/rcS + +case $1 in + start) + echo -n "Starting $PROGRAM_NAME: " + if [ -f $PIDFILE ] + then + PID=`cat $PIDFILE` + + if ps ax | grep -q "^$PID" + then + echo "$PROGRAM_NAME already running." + else + rm -f $PIDFILE + $PROGRAM_BIN -d > $LOGFILE + echo "OK" + fi + else + $PROGRAM_BIN -d > $LOGFILE + echo "OK" + fi + ;; + + stop) + echo -n "Stopping $PROGRAM_NAME: " + if [ -f $PIDFILE ] + then + PID=`cat $PIDFILE` + if ps ax | grep -q "^$PID" + then + kill -10 $PID + fi + rm $PIDFILE + else + echo "No $PROGRAM_NAME found running; no killed." + fi + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + log_success_msg "Usage: $0 {stop|start|restart}" + exit 1 + ;; +esac diff -r 7f290a3a34b1 -r c404781fda4e gmyth-stream/server/0.3/data/server.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-stream/server/0.3/data/server.conf Tue Aug 21 17:14:42 2007 +0100 @@ -0,0 +1,2 @@ +[PATHS] +transcoded=/var/gms-media