svn commit: r443446 - in head/sysutils/nut: . files

Cy Schubert cy at FreeBSD.org
Mon Jun 12 13:48:37 UTC 2017


Author: cy
Date: Mon Jun 12 13:48:36 2017
New Revision: 443446
URL: https://svnweb.freebsd.org/changeset/ports/443446

Log:
  Shut down upsmon gracefully.

Modified:
  head/sysutils/nut/Makefile
  head/sysutils/nut/files/nut_upsmon.in

Modified: head/sysutils/nut/Makefile
==============================================================================
--- head/sysutils/nut/Makefile	Mon Jun 12 13:30:02 2017	(r443445)
+++ head/sysutils/nut/Makefile	Mon Jun 12 13:48:36 2017	(r443446)
@@ -3,7 +3,7 @@
 
 PORTNAME=	nut
 PORTVERSION=	2.7.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 MASTER_SITES=	http://www.networkupstools.org/source/${PORTVERSION:R}/
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig

Modified: head/sysutils/nut/files/nut_upsmon.in
==============================================================================
--- head/sysutils/nut/files/nut_upsmon.in	Mon Jun 12 13:30:02 2017	(r443445)
+++ head/sysutils/nut/files/nut_upsmon.in	Mon Jun 12 13:48:36 2017	(r443446)
@@ -32,9 +32,16 @@ pidfile="%%STATEDIR%%/upsmon.pid"
 nut_upsmon_flags=${nut_upsmon_flags-"localhost"}
 
 extra_commands=reload
+stop_cmd="upsmon_stop"
+
 reload()
 {
 	${command} -c reload
+}
+
+upsmon_stop()
+{
+	${command} -c stop
 }
 
 run_rc_command "$1"


More information about the svn-ports-head mailing list