Hi,
I tried to do this using php
<?php
$out=exec("nohup /usr/local/sbin/bearerbox /root/smskannel.conf &");
echo $out;
?>
when i check the process
ps aux | grep box
the bearerbox process is not running, any idea what am doing wrong and how i
can fix this?
Michael
________________________________
From: Sarfaraz Jamal <[email protected]>
To: [email protected]
Sent: Saturday, January 12, 2013 7:45 PM
Subject: RE: Kannel Start/Stop Restart Script
Here is a script we use for restarting kannel:
#!/bin/sh
clear
echo Restarting the process, please allow 15 seconds...
kill -9 $(/sbin/pidof smsbox)
kill -9 $(/sbin/pidof bearerbox)
cd /opt/gw
sleep 5
nohup ./bearerbox -v 1 > bearerbox.log &
sleep 5
nohup ./smsbox -v 1 > smsbox.log &
cd /root
clear
echo Restarted - Verify with web that both services are running.