From owner-svn-ports-all@freebsd.org Mon Apr 30 13:01:19 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C3354FAA1CC; Mon, 30 Apr 2018 13:01:19 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 786ED775A1; Mon, 30 Apr 2018 13:01:19 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 73709137D2; Mon, 30 Apr 2018 13:01:19 +0000 (UTC) (envelope-from eugen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3UD1J5s082528; Mon, 30 Apr 2018 13:01:19 GMT (envelope-from eugen@FreeBSD.org) Received: (from eugen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3UD1J80082526; Mon, 30 Apr 2018 13:01:19 GMT (envelope-from eugen@FreeBSD.org) Message-Id: <201804301301.w3UD1J80082526@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: eugen set sender to eugen@FreeBSD.org using -f From: Eugene Grosbein Date: Mon, 30 Apr 2018 13:01:19 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468696 - in head/sysutils/cpupdate: . files X-SVN-Group: ports-head X-SVN-Commit-Author: eugen X-SVN-Commit-Paths: in head/sysutils/cpupdate: . files X-SVN-Commit-Revision: 468696 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 13:01:19 -0000 Author: eugen Date: Mon Apr 30 13:01:19 2018 New Revision: 468696 URL: https://svnweb.freebsd.org/changeset/ports/468696 Log: sysutils/cpupdate: more suspend/resume support Startup script got support for extra command "resume" that is supposed to be used for "service cpupdate resume" invocation at resume sequence. For now, it is identical to "start". Modified: head/sysutils/cpupdate/Makefile head/sysutils/cpupdate/files/cpupdate.in Modified: head/sysutils/cpupdate/Makefile ============================================================================== --- head/sysutils/cpupdate/Makefile Mon Apr 30 12:58:43 2018 (r468695) +++ head/sysutils/cpupdate/Makefile Mon Apr 30 13:01:19 2018 (r468696) @@ -3,6 +3,7 @@ PORTNAME= cpupdate DISTVERSION= g20180324 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= eugen@FreeBSD.org Modified: head/sysutils/cpupdate/files/cpupdate.in ============================================================================== --- head/sysutils/cpupdate/files/cpupdate.in Mon Apr 30 12:58:43 2018 (r468695) +++ head/sysutils/cpupdate/files/cpupdate.in Mon Apr 30 13:01:19 2018 (r468696) @@ -30,10 +30,17 @@ load_rc_config $name : ${cpupdate_flags="-w -u"} : ${cpupdate_ibrs_enable="YES"} command=%%PREFIX%%/sbin/${name} +resume_cmd="cpupdate_resume" +extra_commands="resume" cpupdate_poststart() { checkyesno cpupdate_ibrs_enable && sysctl -i hw.ibrs_disable=0 return 0 +} + +cpupdate_resume() { + run_rc_command start + _postcmd='' } run_rc_command "$1"