#!/bin/bash # description: Start/Stop bayonne telephony server # PROGRAM=/usr/sbin/bayonne RUNLEVEL=3 NEEDS="+network +remote_fs" ARGS="-p" source /etc/init.d/smgl_functions #case $1 in # start) # echo "Starting Bayonne engine" ## su -l "$FBRunUser" -s /bin/sh -m -c "$FB -start -forever" # evaluate_retval # ;; # stop) # echo "Stopping Bayonne engine" # su -l "$FBRunUser" -s /bin/sh -m -c "$FB -shut" # evaluate_retval # ;; # restart|reload) # echo "Restarting Bayonne engine" # $0 stop # $0 start # evaluate_retval # ;; # *) # echo "Usage: $0 {start|stop|restart}" # exit 1 # ;; #esac .