From: Ricardo Markiewicz Date: Sun, 24 Oct 2004 20:28:08 +0000 (+0000) Subject: capturo SIGTERM para matar el demonio en background X-Git-Tag: svn_import~60 X-Git-Url: https://git.llucax.com/z.facultad/75.08/llamadas.git/commitdiff_plain/fb5ae83716553f8dbb1f12b3c6f7e640fe9f8be8 capturo SIGTERM para matar el demonio en background --- diff --git a/inst/aficonf b/inst/aficonf index ab6bd66..7b94203 100755 --- a/inst/aficonf +++ b/inst/aficonf @@ -41,9 +41,8 @@ menu () { echo "=======" echo echo " 1) Alta" - echo " 2) Baja" - echo " 3) Buscar" - echo " 4) Salir" + echo " 2) Buscar" + echo " 3) Salir" preguntar "Su opciĆ³n" "1234" $1 } @@ -188,8 +187,7 @@ while [ "$OPT" != "4" ] ; do case $OPT in "1") case_altas ;; - "2") echo "Dos" ;; - "3") case_buscar ;; + "2") case_buscar ;; esac done diff --git a/inst/afimonio b/inst/afimonio index 95b1ab5..2c40778 100644 --- a/inst/afimonio +++ b/inst/afimonio @@ -6,6 +6,7 @@ BASE_DIR=$HOME/.antifraude . "$HOME/.antifraude/conf/antifraude.conf" trap "finalize" INT +trap "finalize" TERM # Es llamada por los trap para deslockear el afimonio finalize() {