tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Daemon user



On 5/14/24 17:51, Greg Troxel wrote:
At any rate, I augmented the comment on PKG_RCD_SCRIPTS in
mk/pkginstall/bsd.pkginstall.mk to more fully explain the current behavior.
Souunds good.  Maybe the next person will actually even look there!

I'd expect them to look at the guide first, which currently doesn't say any more than the comments.

Any feedback on the following update before I commit it?

21.6.14. Packages installing startup scripts

If a package contains an rc.d script, it won’t be copied into the startup directory (/etc/rc.d) by default, but you can enable copying by setting the option PKG_RCD_SCRIPTS=YES in mk.conf. With PKG_RCD_SCRIPTS=YES, rc.d scripts will be copied into /etc/rc.d when a package is installed, but only if the target does not already exist. Copies in /etc/rc.d will be automatically removed only if they have not been modified. Hence, modifying scripts in /etc/rc.d will prevent them from being upgraded along with the package.

Note that this alone does not enable the service: It must still be added to /etc/rc.conf.

--- files/fixes.xml     13 Mar 2024 13:55:53 -0000      1.199
+++ files/fixes.xml     15 May 2024 13:11:28 -0000
@@ -2468,13 +2468,21 @@

   <sect2 id="startup-scripts">
     <title>Packages installing startup scripts</title>
-    <para>If a package contains a rc.d script, it won't be copied into
-    the startup directory by default, but you can enable it, by adding
-    the option <varname>PKG_RCD_SCRIPTS=YES</varname> in
-    &mk.conf;. This option will copy the scripts
-    into <filename>/etc/rc.d</filename> when a package is installed, and
-    it will automatically remove the scripts when the package is
-    deinstalled.</para>
+    <para>If a package contains an rc.d script, it won't be copied into
+    the startup directory (<filename>/etc/rc.d</filename>) by default,
+    but you can enable copying by setting the option
+    <varname>PKG_RCD_SCRIPTS=YES</varname> in
+    &mk.conf;.  With <varname>PKG_RCD_SCRIPTS=YES</varname>, rc.d scripts
+    will be copied into <filename>/etc/rc.d</filename> when a package
+    is installed, but only if the target does not already exist.
+    Copies in <filename>/etc/rc.d</filename> will be automatically removed
+    only if they have not been modified.  Hence, modifying scripts in
+    <filename>/etc/rc.d</filename> will prevent them from being upgraded
+    along with the package.
+    </para>
+
+ <para>Note that this alone does not enable the service: It must still be
+    added to <filename>/etc/rc.conf</filename>.</para>
   </sect2>

--
Life is a game.  Play hard.  Play fair.  Have fun.



Home | Main Index | Thread Index | Old Index