From owner-freebsd-questions@freebsd.org Tue Apr 23 03:11:29 2019 Return-Path: Delivered-To: freebsd-questions@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 E92D5158BF18 for ; Tue, 23 Apr 2019 03:11:28 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBD28C14B for ; Tue, 23 Apr 2019 03:11:28 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=Message-ID:Subject:To:From:Date:In-Reply-To; bh=8jLbJXcUv07Ak3sMkevfPrGSBL8n4mV5sVMjBHgScdw=; b=iJCf3yuEee+ocXagHQIcF7GRwm 4td4SPH6G82il4R1Uj2y+8aO+C78cpu2MElgxW6s8FS5/k+zoxhfR4bngy8GHlvrTdKIQOjuYjwDe JXyqyVJBbcMmeiUJYaGur+2Ii/nzXOmv+EqvkQLtNUvS7fH5UI5O7jd9oOcPvI7ErBMU=; Received: from vas by admin.sibptus.ru with local (Exim 4.92 (FreeBSD)) (envelope-from ) id 1hIlqB-0000bY-Dm for freebsd-questions@freebsd.org; Tue, 23 Apr 2019 10:11:27 +0700 Date: Tue, 23 Apr 2019 10:11:27 +0700 From: Victor Sudakov To: freebsd-questions@freebsd.org Subject: rcorder, script to be executed last? Message-ID: <20190423031127.GA2158@admin.sibptus.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.11.4 (2019-03-13) Sender: Victor Sudakov X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Apr 2019 03:11:29 -0000 --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Dear Colleagues, How do I create a rc.d script which would be guaranteed to execute last (after all other scripts) on system shutdown?=20 I want to place "apcupcd --killpower" there (and some procedure to check if this shutdown has been initiated by apcupcd). Or should I place it directly into /etc/rc.shutdown ?=20 --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcvoJfAAoJEA2k8lmbXsY0OPIIAKLllHfkHeALL9gEkAbtWfez EvgRcuL63pjWAookKpPnYK9kLmG5SbYB8KVDKBMJScn4uhwJWM3+hDG0tCBMmLRs RhW0/OD3txOKLfxho8fckvAkW+TGNgC5IzGoArghj8WP+sjW567QRyPUowls/yUx FpRgOmPqpbSdBprOlCsH1ANL5ojb7D3g+Aa6W1kV7E2f8MbwFMUycJWld+bfxNxn b8fif5N4oCgXqbnpTFJ0hIhQN5VwcoI8HbOiO3BbpjVA1IOS8HvUjSW+wN8bHCES UhvKStzzmI7Yt3Ra75NIDQNFjgtpGTszLq1pEFh3BRiXflpfomAjaKGdplxGyIU= =hJ6a -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--