[Pkg-ocaml-maint-commits] [SCM] ocsigen packaging branch, master, updated. debian/1.1.0-1-1-gb364c41

Stephane Glondu steph at glondu.net
Fri Oct 3 20:02:54 UTC 2008


The following commit has been merged in the master branch:
commit b364c411a7bc55e923992ff963203cbd01ec6d56
Author: Stephane Glondu <steph at glondu.net>
Date:   Fri Oct 3 22:01:52 2008 +0200

    Make configuration file explicit in init script)

diff --git a/debian/ocsigen.init b/debian/ocsigen.init
index b934245..5c523fb 100644
--- a/debian/ocsigen.init
+++ b/debian/ocsigen.init
@@ -19,12 +19,13 @@ DAEMON=/usr/bin/ocsigen
 NAME=ocsigen
 DESC=ocsigen
 PIDFILE=/var/run/$NAME.pid
+DEFAULTFILE=/etc/default/ocsigen
 
 test -x $DAEMON || exit 0
 
 # Include ocsigen defaults if available
-if [ -f /etc/default/ocsigen ] ; then
-	. /etc/default/ocsigen
+if [ -f $DEFAULTFILE ] ; then
+	. $DEFAULTFILE
 fi
 
 set -e
@@ -32,7 +33,7 @@ set -e
 case "$1" in
   start|force-start)
 	if [ "x$LAUNCH_AT_STARTUP" != "xtrue" ] && [ "x$1" = "xstart" ]; then
-	    echo "Configuration file prevent $NAME to be started (use force-start)."
+	    echo "$DEFAULTFILE prevents $NAME to be started (use force-start)."
 	    exit 0
 	fi
 

-- 
ocsigen packaging



More information about the Pkg-ocaml-maint-commits mailing list