From owner-freebsd-pkg@freebsd.org Thu Dec 3 11:57:36 2020 Return-Path: Delivered-To: freebsd-pkg@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 038454A44A0 for ; Thu, 3 Dec 2020 11:57:36 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from mail.kronometrix.org (mail.kronometrix.org [79.134.105.182]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.kronometrix.org", Issuer "mail.kronometrix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CmvTp50Khz3hgW for ; Thu, 3 Dec 2020 11:57:34 +0000 (UTC) (envelope-from sparvu@kronometrix.org) Received: from [192.168.1.151] (82-203-142-141.bb.dnainternet.fi [82.203.142.141]) (authenticated bits=0) by mail.kronometrix.org (8.16.1/8.15.2) with ESMTPSA id 0B3BvQB8093818 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 3 Dec 2020 11:57:32 GMT (envelope-from sparvu@kronometrix.org) X-Authentication-Warning: mail.kronometrix.org: Host 82-203-142-141.bb.dnainternet.fi [82.203.142.141] claimed to be [192.168.1.151] From: Stefan Parvu Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.20.0.2.21\)) Subject: Re: FreeBSD 11.4 / 12.2 pkg-install problems startup service Date: Thu, 3 Dec 2020 13:57:21 +0200 References: <20201203103544.omchaeelpaaylwll@ivaldir.net> To: freebsd-pkg@freebsd.org In-Reply-To: <20201203103544.omchaeelpaaylwll@ivaldir.net> Message-Id: X-Mailer: Apple Mail (2.3654.20.0.2.21) X-Rspamd-Queue-Id: 4CmvTp50Khz3hgW X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of sparvu@kronometrix.org designates 79.134.105.182 as permitted sender) smtp.mailfrom=sparvu@kronometrix.org X-Spamd-Result: default: False [-2.80 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[79.134.105.182:from]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pkg@freebsd.org]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[79.134.105.182:from:127.0.2.255]; TO_DN_NONE(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[kronometrix.org]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16302, ipnet:79.134.96.0/19, country:FI]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-pkg] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Dec 2020 11:57:36 -0000 >=20 > That said because we know a lot of people have been doing that for a = while, pkg > has an option (off by default) HANDLE_RC_SCRIPT >=20 > if you set it to true when installing your package it will start the = rc.d script > so you don't need to install that in your post install script. Let me see if I understood this right? Usually, under pkg-install POST = phase there could be set some final settings=20 after the package is extracted and copied to its destination. But = placing startup scripts or calling rc.d scripts from that POST install phase would not work. Right ? Or does it? I am asking because I want to be able to allow users to just say: pkg = add kdr-1.6.2-freebsd11.4-amd64.txz=20 and thats it. The sfw will install under /opt/kronometrix and all = necessarily components should start automatically. For that I was thinking I could use pkg-install POST phase. Do you mean = could I set true the HANDLE_RC_SCRIPT variable is the pkg-install POST phase or where ? Or do you mean, when I manually pkg add I should set true = HANDLE_RC_SCRIPT from command line for pkg command ? Cheers, Stefan