[Pkg-voip-commits] r7726 - in /asterisk/trunk/debian: asterisk.examples asterisk.startup.conf changelog

tzafrir-guest at alioth.debian.org tzafrir-guest at alioth.debian.org
Tue Oct 27 22:40:49 UTC 2009


Author: tzafrir-guest
Date: Tue Oct 27 22:40:49 2009
New Revision: 7726

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7726
Log:
Add a sample startup init script. Not installed.

Added:
    asterisk/trunk/debian/asterisk.startup.conf
Modified:
    asterisk/trunk/debian/asterisk.examples
    asterisk/trunk/debian/changelog

Modified: asterisk/trunk/debian/asterisk.examples
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.examples?rev=7726&op=diff
==============================================================================
--- asterisk/trunk/debian/asterisk.examples (original)
+++ asterisk/trunk/debian/asterisk.examples Tue Oct 27 22:40:49 2009
@@ -1,2 +1,3 @@
 sample.call
 contrib/scripts/vmail.cgi
+debian/asterisk.startup.conf

Added: asterisk/trunk/debian/asterisk.startup.conf
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/asterisk.startup.conf?rev=7726&op=file
==============================================================================
--- asterisk/trunk/debian/asterisk.startup.conf (added)
+++ asterisk/trunk/debian/asterisk.startup.conf Tue Oct 27 22:40:49 2009
@@ -1,0 +1,44 @@
+# asterisk
+#
+# Upstart control file for the Asterisk PBX
+#
+# To install, rename this file to 'asterisk' and copy it to /etc/event.d/
+# On Debian: copy to /etc/init/
+#
+# To start asterisk manually:
+#     sudo start asterisk
+#
+# To stop asterisk manually:
+#     sudo stop asterisk
+#
+# Asterisk is started with an "interactive console", though redirected
+# to/from /dev/null . The concept of a main console is bad. OTOH, the main
+# process should not detach from the console if we work with upstart and
+# alike.
+#
+# The username 'asterisk' is currently hardwired here, and likewise the
+# varrundir.
+#
+
+description "Asterisk PBX"
+#version     "1.6.3"
+
+start on runlevel [2345]
+stop  on runlevel [!2345]
+
+pre-start script
+  # Since Ubuntu clears /var/run on reboot, create this before we try to start
+  if [ ! -d /var/run/asterisk ]; then
+    mkdir -p asterisk /var/run/asterisk
+    chown asterisk: /var/run/asterisk
+  fi
+end script
+
+#console output
+respawn
+exec /usr/sbin/asterisk -U asterisk -g -f
+
+post-stop script
+  # Might as well clean up after ourselves, too.
+  rm -rf /var/run/asterisk
+end script

Modified: asterisk/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/changelog?rev=7726&op=diff
==============================================================================
--- asterisk/trunk/debian/changelog (original)
+++ asterisk/trunk/debian/changelog Tue Oct 27 22:40:49 2009
@@ -1,8 +1,12 @@
 asterisk (1:1.6.2.0~rc3-2) UNRELEASED; urgency=low
 
+  [ Faidon Liambotis ]
   * Really ship MoH sounds, as mentioned in the rc1 upload.
 
- -- Faidon Liambotis <paravoid at debian.org>  Mon, 26 Oct 2009 03:40:00 +0200
+  [ Tzafrir Cohen ]
+  * Add a sample startup init script. Not installed.
+
+ -- Tzafrir Cohen <tzafrir.cohen at xorcom.com>  Wed, 28 Oct 2009 00:38:58 +0200
 
 asterisk (1:1.6.2.0~rc3-1) unstable; urgency=low
 




More information about the Pkg-voip-commits mailing list