[asterisk-commits] seanbright: trunk r200428 - in /trunk/contrib/upstart: ./ asterisk.upstart-0.3.9

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 12 14:42:41 CDT 2009


Author: seanbright
Date: Fri Jun 12 14:42:26 2009
New Revision: 200428

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=200428
Log:
First shot at an upstart script for asterisk on Ubuntu.

This works relatively well (assuming you are using /var/run/asterisk) as your
run directory and upstart 0.3.9.  Needs to be generalized and eventually added
to the 'make install' target for Ubuntu.

Added:
    trunk/contrib/upstart/
    trunk/contrib/upstart/asterisk.upstart-0.3.9   (with props)

Added: trunk/contrib/upstart/asterisk.upstart-0.3.9
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/contrib/upstart/asterisk.upstart-0.3.9?view=auto&rev=200428
==============================================================================
--- trunk/contrib/upstart/asterisk.upstart-0.3.9 (added)
+++ trunk/contrib/upstart/asterisk.upstart-0.3.9 Fri Jun 12 14:42:26 2009
@@ -1,0 +1,28 @@
+# asterisk
+#
+# Upstart control file for the Asterisk PBX
+
+description "Asterisk PBX"
+version     "1.6.3"
+
+start on runlevel 2
+start on runlevel 3
+start on runlevel 4
+start on runlevel 5
+
+stop on runlevel 0
+stop on runlevel 1
+stop on runlevel 6
+
+pre-start script
+  # Since Ubuntu clears /var/run on reboot, create this before we try to start
+  mkdir -p /var/run/asterisk
+end script
+
+respawn
+exec /usr/sbin/asterisk -vvvvvvvg -cf
+
+post-stop script
+  # Might as well clean up after ourselves, too.
+  rm -rf /var/run/asterisk
+end script

Propchange: trunk/contrib/upstart/asterisk.upstart-0.3.9
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: trunk/contrib/upstart/asterisk.upstart-0.3.9
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: trunk/contrib/upstart/asterisk.upstart-0.3.9
------------------------------------------------------------------------------
    svn:mime-type = text/plain




More information about the asterisk-commits mailing list