From owner-freebsd-current@freebsd.org Thu May 3 16:03:35 2018 Return-Path: Delivered-To: freebsd-current@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 D8401FAFE88; Thu, 3 May 2018 16:03:34 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A6B2843A7; Thu, 3 May 2018 16:03:34 +0000 (UTC) (envelope-from eugen@grosbein.net) X-Envelope-To: freebsd-current@freebsd.org Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w43G3R54017197 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 3 May 2018 18:03:27 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w43G3NSK082827 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Thu, 3 May 2018 23:03:23 +0700 (+07) (envelope-from eugen@grosbein.net) To: freebsd-acpi@freebsd.org Cc: FreeBSD Current From: Eugene Grosbein Subject: D15247: add rcorder(8) support to /etc/rc.resume Message-ID: <5AEB32BB.40502@grosbein.net> Date: Thu, 3 May 2018 23:03:07 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="36k032L4l8gnKumd9QBWBJd61wSoQqjbD" X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-Mailman-Approved-At: Thu, 03 May 2018 16:13:34 +0000 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 May 2018 16:03:35 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --36k032L4l8gnKumd9QBWBJd61wSoQqjbD Content-Type: multipart/mixed; boundary="i10jINebtXcW0oxibA5jLLiOCQLXDhiWA"; protected-headers="v1" From: Eugene Grosbein To: freebsd-acpi@freebsd.org Cc: FreeBSD Current Message-ID: <5AEB32BB.40502@grosbein.net> Subject: D15247: add rcorder(8) support to /etc/rc.resume --i10jINebtXcW0oxibA5jLLiOCQLXDhiWA Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Hi! While dealing with https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D22= 7866 I've found we have no easy way to insert custom "hooks" after ACPI resume procedure other than devd(8). And running devd itself may be undesirable for several reasons. Manual editing of /etc/rc.resume is not desirable too because it makes upgrades less smooth. So, I'd like to add rcorder(8) support to /etc/rc.resume: https://reviews= =2Efreebsd.org/D15247 /etc/rc.resume will call "rcorder -k resume" and run rcNG scripts containing "KEYWORD: resume" with single "resume" argument. Working example is the port sysutils/cpupdate version g20180324_1 that defines extra_commands=3D"resume" to reload CPU microcode cleared by= suspend/resume sequence. This change does nothing if system has no rcNG scripts with "KEYWORD: res= ume" inside. I'm going to commit this in a week unless told not to for a reason. --i10jINebtXcW0oxibA5jLLiOCQLXDhiWA-- --36k032L4l8gnKumd9QBWBJd61wSoQqjbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJa6zLFAAoJELDNGvImmIsovNoH/1keONB2dbx9TMFVw8HG3LDO WGPzFtuqSwiGUv9imkftcpf9vYly4iishNqkW07lko8huNFbI1fTIkukd4d/hKwf TuB/QVcT6ABQJEzgwXqhic187p8b0HYC+PEcqLcJkIHipiDhY81RA/ek007vK6Xd 4Aj5OwOIypqU/x45wfYo+cKzDgeOhboEKm04oSV5dpWqJfVV8BpFHwVeRFHJ0DiO bDyQmVQHYGsnFy4R8B/qjdefdAhK80FwicO2+FKA9CE2hSLxcAReTpddSo34Gqbu 2dI/fd1g0Yby8oQahuNELAz2P0kp1oOiBnGLv212RfQDfpozRxJOuwH1qBmjVDU= =1l39 -----END PGP SIGNATURE----- --36k032L4l8gnKumd9QBWBJd61wSoQqjbD--