[Pkg-voip-commits] r3728 - destar/trunk/debian
santiago at alioth.debian.org
santiago at alioth.debian.org
Sun Jul 8 17:36:49 UTC 2007
Author: santiago
Date: 2007-07-08 17:36:49 +0000 (Sun, 08 Jul 2007)
New Revision: 3728
Added:
destar/trunk/debian/destar.default
Modified:
destar/trunk/debian/changelog
destar/trunk/debian/destar.init
Log:
Added /etc/default/destar
Modified: destar/trunk/debian/changelog
===================================================================
--- destar/trunk/debian/changelog 2007-07-08 14:31:00 UTC (rev 3727)
+++ destar/trunk/debian/changelog 2007-07-08 17:36:49 UTC (rev 3728)
@@ -2,6 +2,7 @@
* NOT RELEASED YET
* updated debian/watch
+ * Added destar default config file.
-- Alejandro Rios P. <alejandro.rios at avatar.com.co> Mon, 12 Feb 2007 15:19:33 -0500
Added: destar/trunk/debian/destar.default
===================================================================
--- destar/trunk/debian/destar.default (rev 0)
+++ destar/trunk/debian/destar.default 2007-07-08 17:36:49 UTC (rev 3728)
@@ -0,0 +1,10 @@
+# Default configuration for DeStar, IP PBX web configuration tool.
+# This file allows you to alter the behavior of Destar init.d script file
+#
+# Use 1 or 0 if you want to enable or disable destar.
+#
+ENABLED=1
+#
+# Port on which destar will listen on. If no specified, 8088 is used
+#
+PORT=8080
Modified: destar/trunk/debian/destar.init
===================================================================
--- destar/trunk/debian/destar.init 2007-07-08 14:31:00 UTC (rev 3727)
+++ destar/trunk/debian/destar.init 2007-07-08 17:36:49 UTC (rev 3728)
@@ -19,7 +19,8 @@
NAME=destar
DESC="Asterisk Web GUI DeStar"
PIDFILE=/var/run/$NAME/$NAME.pid
-DAEMON_OPTS="--daemonize --pid=$PIDFILE --port=8080"
+ENABLED=0
+PORT=8080
test -x $DAEMON || exit 0
@@ -28,6 +29,10 @@
. /etc/default/destar
fi
+test "$ENABLED" != "0" || exit 0
+
+DAEMON_OPTS="--daemonize --pid=$PIDFILE --port=$PORT"
+
set -e
case "$1" in
More information about the Pkg-voip-commits
mailing list