Jump to content

No start under Debian


Christopher

Recommended Posts

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.

Link to comment
Share on other sites

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.

 

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...