Christopher Posted September 15, 2009 Report Share Posted September 15, 2009 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. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted September 20, 2009 Report Share Posted September 20, 2009 update-rc.d: warning: /etc/init.d/pbxnsip missing LSB informationupdate-rc.d: see <http://wiki.debian.org/LSBInitScripts> System startup links for /etc/init.d/pbxnsip already exist. Those warnings are okay. I remember I also had them and it did not matter. Check if the script and the PBX executable can be executed. Use "chmod a+rx" if they are not. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.