By the way, PROG was not set, and LSB information was missing. Signed-off-by: Christian Couder <[email protected]> --- doc/templates/centos/stomp | 8 ++++++-- doc/templates/ubuntu/stomp | 19 +++++++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/doc/templates/centos/stomp b/doc/templates/centos/stomp index f8b9496..8a74923 100755 --- a/doc/templates/centos/stomp +++ b/doc/templates/centos/stomp @@ -6,13 +6,17 @@ # description: stompserver daemon # # processname: stompserver +# pidfile: /var/www/gitorious/tmp/stomp/log/stompserver.pid # source function library . /etc/rc.d/init.d/functions +RUBY_HOME="/opt/ruby-enterprise" +GEMS_HOME="/usr" +GITORIOUS_HOME="/var/www/gitorious" RETVAL=0 -GITORIOUS_HOME=/var/www/gitorious -STOMP="/usr/bin/ruby /usr/bin/stompserver -w $GITORIOUS_HOME/tmp/stomp -q file -s queue &> /dev/null &" +PROG="stompserver" +STOMP="$RUBY_HOME/bin/ruby $GEMS_HOME/bin/stompserver -w $GITORIOUS_HOME/tmp/stomp -q file -s queue &> /dev/null &" LOCK_FILE=/var/lock/stomp PID_FILE=$GITORIOUS_HOME/tmp/stomp/log/stompserver.pid diff --git a/doc/templates/ubuntu/stomp b/doc/templates/ubuntu/stomp index f249f41..69d3f5f 100755 --- a/doc/templates/ubuntu/stomp +++ b/doc/templates/ubuntu/stomp @@ -1,10 +1,21 @@ #!/bin/bash +### BEGIN INIT INFO +# Provides: Gitorious stompserver +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: stompserver daemon +# Description: Starts the stompserver needed by Gitorious +### END INIT INFO # -# init file for stompserver -# + +RUBY_HOME="/opt/ruby-enterprise" +GEMS_HOME="/usr" +GITORIOUS_HOME="/var/www/gitorious" RETVAL=0 -GITORIOUS_HOME=/var/www/gitorious -STOMP="/usr/bin/ruby /usr/bin/stompserver -w $GITORIOUS_HOME/tmp/stomp -q file -s queue &> /dev/null &" +PROG="stompserver" +STOMP="$RUBY_HOME/bin/ruby $GEMS_HOME/bin/stompserver -w $GITORIOUS_HOME/tmp/stomp -q file -s queue &> /dev/null &" LOCK_FILE=/var/lock/stomp PID_FILE=$GITORIOUS_HOME/tmp/stomp/log/stompserver.pid -- 1.7.4.1.42.g43f9f ******************************* This e-mail contains information for the intended recipient only. It may contain proprietary material or confidential information. If you are not the intended recipient you are not authorised to distribute, copy or use this e-mail or any attachment to it. Murex cannot guarantee that it is virus free and accepts no responsibility for any loss or damage arising from its use. If you have received this e-mail in error please notify immediately the sender and delete the original email received, any attachments and all copies from your system. -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
