Date: Tue, 25 Mar 2014 09:36:11 GMT From: Tim Bishop <tim@bishnet.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/187924: [PATCH] sysutils/apcupsd: Use shutdown -p rather than -h Message-ID: <201403250936.s2P9aB0n006635@aberfal.kent.ac.uk> Resent-Message-ID: <201403250940.s2P9e1Xv063658@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 187924 >Category: ports >Synopsis: [PATCH] sysutils/apcupsd: Use shutdown -p rather than -h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Mar 25 09:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Tim Bishop >Release: FreeBSD 9.2-STABLE amd64 >Organization: >Environment: System: FreeBSD aberfal.kent.ac.uk 9.2-STABLE FreeBSD 9.2-STABLE #2 r263321: Wed Mar 19 01:35:20 GMT >Description: When shutting down the system use -p to make sure it's powered off. On my system without this change it just sits there waiting to be turned off, and I'd prefer it turned itself off rather than waiting for the UPS to kill the power feed. I can patch this locally if this isn't generally useful, but I'm not sure what benefit there is to using -h over -p anyway? Port maintainer (itetcu@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 1.00.2014.03.16 (mode: change, diff: SVN) >How-To-Repeat: >Fix: --- apcupsd-3.14.10.patch begins here --- Index: Makefile =================================================================== --- Makefile (revision 349116) +++ Makefile (working copy) @@ -3,7 +3,7 @@ PORTNAME= apcupsd PORTVERSION= 3.14.10 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20-%20Stable/${PORTVERSION}:src_sf \ http://T32.TecNik93.com/FreeBSD/ports/${PORTNAME}/sources/:src_bk \ Index: files/patch-platforms__freebsd__apccontrol.in =================================================================== --- files/patch-platforms__freebsd__apccontrol.in (revision 0) +++ files/patch-platforms__freebsd__apccontrol.in (working copy) @@ -0,0 +1,11 @@ +--- ./platforms/freebsd/apccontrol.in.orig 2014-03-25 09:30:55.601949175 +0000 ++++ ./platforms/freebsd/apccontrol.in 2014-03-25 09:31:08.186752904 +0000 +@@ -89,7 +89,7 @@ + ;; + doshutdown) + printf "Beginning Shutdown Sequence" | wall +- ${SHUTDOWN} -h now "apcupsd initiated shutdown" ++ ${SHUTDOWN} -p now "apcupsd initiated shutdown" + ;; + annoyme) + printf "Power problems please logoff." | wall --- apcupsd-3.14.10.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403250936.s2P9aB0n006635>