SOURCES: dansguardian.init (NEW) - new
Andrzej Krzysztofowicz
ankry w green.mif.pg.gda.pl
Wto, 22 Lut 2005, 23:55:03 CET
matowy wrote:
> +stop)
> + echo -n "Shutting down dansguardian: "
> + WAITPID=0
> + if [ -f ${PIDDIR}dansguardian.pid ] ; then
> + WAITPID=`cat ${PIDDIR}dansguardian.pid`
> + fi
> + if ${BINARYLOCATION}dansguardian -q 2> /dev/null; then
> + if wait_for_pid $WAITPID ; then
> + echo -e "\\033[60G\c"
> + echo -e "[ \\033[1;32m\c"
> + echo -e "OK\c"
> + echo -e "\\033[0;39m\c"
> + echo " ]"
> + else
> + echo -e "\\033[60G\c"
> + echo -e "[ \\033[1;31m\c"
> + echo -e "FAILED\c"
^^^^^^^^
[...]
> + else
> + echo -e "\\033[60G\c"
> + echo -e "[ \\033[1;31m\c"
> + echo -e "FAILED\c"
^^^^^^^
Jaki sens ma "FAILED" w przypadku funkcji "stop", skoro musi ona
_gwarantowac_ zatrzymanie procesu ?
--
=======================================================================
Andrzej M. Krzysztofowicz ankry w mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
Więcej informacji o liście dyskusyjnej pld-devel-pl