#!/bin/sh case "$1" in start) asterisk ;; restart) $0 stop sleep 3 $0 start ;; reload) killall asterisk ;; stop) killall asterisk ;; esac