Re: [Users] Start/Stop script

2009-06-23 Thread dhcmega
Hi
Because I want to run one box for every cellphone operator I connect to.
Just in case I have to change anything, for debugging, etc
Thanks

On Mon, May 11, 2009 at 4:27 AM, Paul Bagyenda bagye...@dsmagic.com wrote:

 This should work just fine. Also, why do you want to start more than one
 box?

 On May 08, 2009, at 18:44, dhcmega wrote:

   Hi
 I am trying to start and stop mbuni like this

 case $1 in
  start)
echo -n Starting mmsbox
start-stop-daemon --start \
--background \
--chuid mbuni \
--exec $BOXPATH/mmsbox $CONF
echo .
;;

  stop)
echo -n Stopping mmsbox
start-stop-daemon --stop --retry 5 --quiet \
--exec $BOXPATH/mmsbox
echo .
;;

  reload)
# We don't have support for this yet.
exit 1
;;

  restart|force-reload)
$0 stop
#sleep 1
sleep 3
$0 start
;;

  *)
echo Usage: $0 {start|stop|restart|force-reload}
exit 1

 esac

 I don´t know what run_mbuni_box do.
 I also have trouble initiation more than one box.

 I couldn´t find any mbuni starter.

 Any suggestions will be appreciated.
 Thanks

 dhcmega
 ___
 Users mailing list
 Users@mbuni.org
 http://lists.mbuni.org/mailman/listinfo/users


 ___
 Users mailing list
 Users@mbuni.org
 http://lists.mbuni.org/mailman/listinfo/users

___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


Re: [Users] Start/Stop script

2009-05-11 Thread Paul Bagyenda
This should work just fine. Also, why do you want to start more than  
one box?

On May 08, 2009, at 18:44, dhcmega wrote:


Hi
I am trying to start and stop mbuni like this

case $1 in
  start)
echo -n Starting mmsbox
start-stop-daemon --start \
--background \
--chuid mbuni \
--exec $BOXPATH/mmsbox $CONF
echo .
;;

  stop)
echo -n Stopping mmsbox
start-stop-daemon --stop --retry 5 --quiet \
--exec $BOXPATH/mmsbox
echo .
;;

  reload)
# We don't have support for this yet.
exit 1
;;

  restart|force-reload)
$0 stop
#sleep 1
sleep 3
$0 start
;;

  *)
echo Usage: $0 {start|stop|restart|force-reload}
exit 1

esac

I don´t know what run_mbuni_box do.
I also have trouble initiation more than one box.

I couldn´t find any mbuni starter.

Any suggestions will be appreciated.
Thanks

dhcmega
___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users


___
Users mailing list
Users@mbuni.org
http://lists.mbuni.org/mailman/listinfo/users