From fb5ae83716553f8dbb1f12b3c6f7e640fe9f8be8 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sun, 24 Oct 2004 20:28:08 +0000 Subject: [PATCH] capturo SIGTERM para matar el demonio en background --- inst/aficonf | 8 +++----- inst/afimonio | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) 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() { -- 2.43.0