Jump to content

pid file


olecoot
 Share

Recommended Posts

I have several installations of PBXnSIP running on a RH derived flavor of Linux. I use the startup script that is listed in the documentation of the WIKI for all of them.

 

http://wiki.pbxnsip.com/index.php/Installing_in_Linux

 

The init script mentions the pid file as "pidfile: /var/run/pbxctrl.pid" however, the pid is not created (or I have failed to find it). Is this file supposed to be created at statup of the pbxnsip service? I would like to use it for monitoring purposes. As always, thanks in advance.

Link to comment
Share on other sites

The init script mentions the pid file as "pidfile: /var/run/pbxctrl.pid" however, the pid is not created (or I have failed to find it). Is this file supposed to be created at statup of the pbxnsip service? I would like to use it for monitoring purposes. As always, thanks in advance.

 

3.0 will include an option --pidfile <fn> where the PBX will write the PID of the PBX process (not in Windows).

Link to comment
Share on other sites

  • 3 weeks later...
3.0 will include an option --pidfile <fn> where the PBX will write the PID of the PBX process (not in Windows).

 

We added the following line to the init.d script to create the pid:

 

lsof -t -c pbxctrl > /var/run/pbxctrl.pid

 

This will suffice until release 3.0

 

Thanks

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.

 Share

×
×
  • Create New...