# asterisk## Upstart control file for the Asterisk PBXdescription "Asterisk PBX"author "Sean Bright <sean@malleable.com>"version "1.6.3"start on runlevel 2start on runlevel 3start on runlevel 4start on runlevel 5stop on runlevel 0stop on runlevel 1stop on runlevel 6pre-start script # Since Ubuntu clears /var/run on reboot, create this before we try to start mkdir -p /var/run/asteriskend scriptrespawnexec /usr/sbin/asterisk -vvvvvvvg -cfpost-stop script # Might as well clean up after ourselves, too. rm -rf /var/run/asteriskend script