Date: Mon, 30 Apr 2018 13:01:19 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468696 - in head/sysutils/cpupdate: . files Message-ID: <201804301301.w3UD1J80082526@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804301301.w3UD1J80082526>