[Infrastructures] updated rc.isconf
Mohammed Arafa
Mohammed Arafa <mohammed.arafa@gmail.com>
Sun, 2 Oct 2005 12:20:47 +0200
------=_Part_7938_8912453.1128248447371
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
#!/bin/bash
#
# /etc/init.d/isconf
#
# chkconfig: 345 80 20
#
# description: infrastructure build and configuration manager daemon
#
# processname: isconf
#
case "$1" in
start)
echo "Starting isconf daemon"
isconf start
sleep 10
echo "Running isconf update"
isconf -r up
;;
stop)
echo "Stopping isconf daemon"
isconf stop
;;
restart|force-reload)
echo "Restarting isconf daemon"
isconf stop
sleep 10
isconf start
;;
status)
pgrep isconf >> /dev/null
if ! [ $? =3D "1" ] ; then
echo -n "isconf is running with pid: " && pgrep -o isconf
else
echo "isconf is not running!"
fi
;;
*)
echo "Usage: $0 {start|stop|restart|force-reload|status}"
exit 1
;;
esac
exit 0
------=_Part_7938_8912453.1128248447371
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
#!/bin/bash<br>
#<br>
# /etc/init.d/isconf<br>
#<br>
# chkconfig: 345 80 20<br>
#<br>
# description: infrastructure build and configuration manager daemon<br>
#<br>
# processname: isconf<br>
#<br>
case "$1" in<br>
start)<br>
&nb=
sp; echo "Starting isconf daemon"<br>
&nb=
sp; isconf start<br>
&nb=
sp; sleep 10<br>
&nb=
sp; echo "Running isconf update"<br>
&nb=
sp; isconf -r up<br>
&nb=
sp; ;;<br>
stop)<br>
&nb=
sp; echo "Stopping isconf daemon"<br>
&nb=
sp; isconf stop<br>
&nb=
sp; ;;<br>
restart|force-reload)<br>
&nb=
sp; echo "Restarting isconf daemon"<br>
&nb=
sp; isconf stop<br>
&nb=
sp; sleep 10<br>
&nb=
sp; isconf start<br>
&nb=
sp; ;;<br>
status)<br>
&nb=
sp; pgrep isconf >> /dev/null<br>
&nb=
sp; if ! [ $? =3D "1" ] ; then<br>
&nb=
sp;
echo -n "isconf is running with pid: " && pgrep -o isconf=
<br>
&nb=
sp; else<br>
&nb=
sp;
echo "isconf is not running!"<br>
&nb=
sp; fi<br>
&nb=
sp; ;;<br>
*)<br>
&nb=
sp;
echo "Usage: $0 {start|stop|restart|force-reload|status}"<br>
&nb=
sp; exit 1<br>
&nb=
sp; ;;<br>
esac<br>
exit 0
------=_Part_7938_8912453.1128248447371--