Date: Mon, 12 Jun 2017 13:48:36 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r443446 - in head/sysutils/nut: . files Message-ID: <201706121348.v5CDmaDO007907@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706121348.v5CDmaDO007907>