svn commit: r468696 - in head/sysutils/cpupdate: . files

Eugene Grosbein eugen at FreeBSD.org
Mon Apr 30 13:01:19 UTC 2018


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 at 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"


More information about the svn-ports-head mailing list