Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2000 00:00:08 -0700 (PDT)
From:      Stephen Beitzel <sbeitzel@foobie.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/21517: [PATCH] Wrong signal in the script
Message-ID:  <200009260700.AAA01610@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/21517; it has been noted by GNATS.

From: Stephen Beitzel <sbeitzel@foobie.net>
To: freebsd-gnats-submit@FreeBSD.org, sbeitzel@mumble.foobie.net
Cc:  
Subject: Re: ports/21517: [PATCH] Wrong signal in the script
Date: Mon, 25 Sep 2000 23:49:26 -0700

 After looking at the code (c.f. PR ports/21556) I saw that upsd doesn't
 understand SIGTERM. So the shutdown script should use SIGQUIT (which the
 daemon does recognize) instead.
 
 Here's the patch to my posted script:
 
 --- upsd.sh     Mon Sep 25 23:45:40 2000
 +++ /usr/local/etc/rc.d/upsd.sh Mon Sep 25 17:12:15 2000
 @@ -6,7 +6,7 @@
         /usr/local/sbin/upsd
         ;;
  stop)
 -       [ -f /var/run/upsd.pid ] && kill -TERM `cat /var/run/upsd.pid`
 && echo -n ' upsd'
 +       [ -f /var/run/upsd.pid ] && kill -QUIT `cat /var/run/upsd.pid`
 && echo -n ' upsd'
         ;;
  *)
         echo "Usage: `basename $0` {start|stop}" >&2
 
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009260700.AAA01610>