pkgsrc-Users archive

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

Re: What's the norm /usr/pkg/etc/rc.d vs /etc/rc.d for pkg daemons?



On Fri, Jul 25, 2025 at 08:28:36AM +0200, Thomas Klausner wrote:
> Only /etc/rc.d is considered by default on system bootup.  See
> /etc/defaults/rc.conf and in particular the rc_directories variable
> and the comment above.

pkgsrc sources have two patterns:

e.g.

security/heimdal/files/kpasswdd.sh:

    . /etc/rc.subr

www/lighttpd/files/lighttpd.sh

    $_rc_subr_loaded . @SYSCONFBASE@/rc.subr

If I am a packager which of these two shall I choose?

Would be nice if this aspect were uniform across packages. As a user now
I have to handle it in a package specific way. (Till now lighttpd was the
odd one out among the pkg daemons on my system. By that, I don't mean
that's the `wrong' one.)

-- 
Mayuresh


Home | Main Index | Thread Index | Old Index