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