tech-pkg archive

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

Re: Daemon user



On 5/14/24 10:57, Greg Troxel wrote:
Jason Bacon <jtocino%gmx.com@localhost> writes:

On 5/14/24 06:56, Greg Troxel wrote:
Jason Bacon <jtocino%gmx.com@localhost> writes:

Nevermind...  I just realized that I have to manually copy the updated
rc script to /etc/rc.d.  This differs from FreeBSD, where the
port/package automatically installs rc scripts to ${PREFIX}/etc/rc.d
and they run from there.

PKG_RCD_SCRIPTS=	yes

fixes that bug.  Of course, opinions vary as to whether it is a bug or a
feature.

Thanks, I was unaware of that variable.

However, it only copies the script if it doesn't already exist.  It
won't update it along with the package.

My understanding is that if the script is copied in via this mechanism,
then it will be deleted on uninstall if not modified, and thus updates
work.
You do have to clean up when starting to use it.

You are correct.  So I shot myself in the foot by modifying
/etc/rc.d/munge and reinstalling as a test.  Should have modified
munge/files/munge.sh instead.

I'm not sure I understand the rational behind this behavior, which is
basically the same as CONF_FILES.  Unlike config files, I don't think
most rc scripts installed by packages are templates meant to be modified
by the user.

At any rate, I augmented the comment on PKG_RCD_SCRIPTS in
mk/pkginstall/bsd.pkginstall.mk to more fully explain the current behavior.

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



Home | Main Index | Thread Index | Old Index