Srs boa tarde:
Fiz um init.d simples para o monast e gostaria que fosse incorporado
ao fonte do projeto.
Segue abaixo
########
#!/bin/bash
#
# chkconfig: - 91 60
# description: Monast Asterisk Monitor
#
# processname: monast
# config: /etc/monast.conf
# source function library
. /etc/rc.d/init.d/functions
RETVAL=0
prog="monast"
case "$1" in
start)
# The process must be configured first.
[ -f /etc/monast.conf ] || exit 6
echo -n $"Starting $prog: "
daemon /var/www/html/monast/pymon/monast.py --daemon
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/monast
echo
;;
stop)
echo -n $"Shutting down $prog: "
killproc monast
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/monast
echo
;;
restart|reload)
$0 stop
$0 start
RETVAL=$?
;;
status)
status monast
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|reload|status}"
exit 2
esac
exit $RETVAL
######
--
Giancarlo Rubio
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
MonAst-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monast-users