Date: Thu, 3 Dec 2020 15:29:39 +0100 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Stefan Parvu <sparvu@kronometrix.org> Cc: freebsd-pkg@freebsd.org Subject: Re: FreeBSD 11.4 / 12.2 pkg-install problems startup service Message-ID: <20201203142939.mxk5w6qibsksllcz@ivaldir.net> In-Reply-To: <CC0F2D1E-A596-402B-A79E-CD713ECC47AF@kronometrix.org> References: <B4DB2170-8F4C-484E-9217-85B92B4753EE@kronometrix.org> <20201203103544.omchaeelpaaylwll@ivaldir.net> <CC0F2D1E-A596-402B-A79E-CD713ECC47AF@kronometrix.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, Dec 03, 2020 at 01:57:21PM +0200, Stefan Parvu wrote: > > > > 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 > > > > 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 > 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? That is right, it would not work. > > 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 > 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 ? HANDLE_RC_SCRIPT is a user/administrator setting, pkg -o HANDLE_RC_SCRIPT=yes install kdr should do the trick. > > Or do you mean, when I manually pkg add I should set true HANDLE_RC_SCRIPT from command line for pkg command ? The later With next pkg there would be a possible cheat (workarounding the use of a new feature) to be able to do what you ask for. via triggers Best regards, Bapt [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl/I9lEACgkQY4mL3PG3 PlqKIw//ZRzix8Ua8w0yu40cUxP6X2P57xXm59DgeY+bHBAW8b6PGdVgKWdKsqwr 2c7sfs1ZlE2v76TTCTAb/r+dlgjms1ah2qLMjIr6epUYb7L1TG2NbcS2K8BKzcaH TWy9wCZX0s6YKhSHnYs4YiGrNqNTWbxyUcr/pCd2fJ7PIvqhd63xJ0kgW/ZkmjKq N0cbXq/ns9IxU8Vu2nHVjAA2DtiwNdwqx2utyVS1IaK0IxrwtR6FVWcwfw+A+wOG zu3EndCEuJA1GrusLPyPTGUcheY9DyUS3683CsEeN3m+sPUE9BobGr1uXJMivVDY SmCbUe5gFE2CuN20p8jjkBplhgp68zoalJriUwHVGpelDxiUC6Uh2dMu61D/WHY5 DRzYo29l3rL/gYNRpZWkAgza+xGfcQ5128ULg64c4Ra3tT2HDMy8TTE7/ZEwnQX8 SSp0WikNQCSo/k8uycjfz0//jDs/AKN+1CvkuBE4yYg5Sa9AARL6D9u9FiZRkocN twXiJhNmBRsvuIoNXaBY8ymjQxySjsnHMo+VK2MzmsivXwf8qpqTRLgM0bLZiC3z Dym05Us1a75dEGhzyQSGX3mjsU4c63lMJusr6CQsH9qJiSFjUAOWeI1NNXPZ1Nyq Yng9roxK1zYnJrffm761zdPeMH+PrV3aQ1I+Wk/7gm5Z0OmhNZo= =QviH -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20201203142939.mxk5w6qibsksllcz>
