Hello,
i have the actuell pbxnsip (pbxctrl-debian4.0-3.3.1.3177) in the directory /root/pbxnsip/pbx1.1
I have the file pbxnsip in the directory /etc/init.d created wit the following contents
#!/bin/bash
PBXEXE=/root/pbxnsip/pbx1.1/pbxctrl-debian4.0-3.3.1.3177
PBXDIR=/root/pbxnsip/pbx1.1
#Service script for the pbxnsip PBX:
case "$1" in
start)
echo -n "Starting pbxnsip daemon"
$PBXEXE --dir $PBXDIR || return=$rc_failed
echo -e "$return"
;;
stop)
echo -n "Shutting down pbxnsip daemon:"
killall $PBXEXE || return=$rc_failed
echo -e "$return"
;;
restart)
$0 stop && $0 start || return=$rc_failed
;;
status)
echo -n "Checking for service pbxnsip: "
checkproc /usr/sbin/pbxnsip && echo OK || echo No process
;;
*)
echo "Usage: $0 {start|stop|status|restart}"
exit 1
esac
# Inform the caller not only verbosely and set an exit status.
test "$return" = "$rc_done" || exit 1
exit 0
and i have execute "update-rc.d -n pbxnsip defaults"
and obtaining the succeeding informations and the pbxnsip is not starting.
update-rc.d: warning: /etc/init.d/pbxnsip missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System startup links for /etc/init.d/pbxnsip already exist.
Can anyone help me ???
Thank you
Sorry for my english.