[Users] How to start ser on boot? how to monitor it?

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Dec 13 12:19:13 CET 2005


Hi Cesc,

try to use "monit" to perform pid-based monitoring.

regards,
bogdan

Cesc wrote:

>Hi all,
>
>Thanks for the responses. It seems that the ser part is covered well,
>though i need also to monitor sems ... i could simply monitor by pid
>or by sending some command via the fifo/unixsock and check the reply
>... Anyone doing something like this?
>
>Regards,
>
>Cesc
>
>On 12/13/05, Klaus Darilion <klaus.mailinglists at pernau.at> wrote:
>  
>
>>Cesc wrote:
>>    
>>
>>>Hi,
>>>
>>>An easy one ... or two.
>>>
>>>1 - I need to start up ser automatically on the boot of the machine
>>>... i am sure there are scripts and instructions on how to do it. Any
>>>pointer?
>>>      
>>>
>>When using debian packages (make deb) the startup scrtipts will be
>>installed automatically, and openser will be started at startup.
>>Otheriwse (on debain) just
>>  cp packaging/debian/openser.init /etc/init.d/openser
>>maybe you have tomodify the path inisde the startup script to fit your
>>needs.
>>  chmod a+x /etc/init.d/openser
>>  update-rc.d openser defaults
>>
>>    
>>
>>>2 - I need a way to monitor the status of ser (and sems), so that in
>>>case of a crash they are automatically killed and restarted. I thought
>>>about writing some kind of cron thingy using serctl ... Again,
>>>pointers?
>>>      
>>>
>>We montior using a cron job:
>># passive check if SER is alive
>>*/5 * * * * /usr/lib/ser/checker
>>
>>
>>/usr/lib/ser/checker:
>>----------------------
>>#!/bin/sh
>>
>>NETCOUNT=`netstat -antu | fgrep 5060 | fgrep 0.0.0.0: | wc -l`
>>
>>if [ $NETCOUNT -lt 2 ] ; then
>>        echo "SER does not seem to listen on udp/tcp 5060. Restarting."
>>        /etc/init.d/openser restart
>>fi
>>
>>
>>
>>klaus
>>
>>    
>>
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
>
>  
>





More information about the sr-users mailing list