/usr/local/etc/rc.d missing

0 views
Skip to first unread message

Andrew Wood

unread,
Jun 12, 2025, 9:43:09 AMJun 12
to freebsd-...@freebsd.org
Hi

I have a clean install of FreeBSD 14 but running ls /usr/local/etc shows
no rc.d directory there.

I was under the impression this is where packages should add their rc
scripts? Has this been changed?

Thanks

Andrew


Paul Procacci

unread,
Jun 12, 2025, 12:40:26 PMJun 12
to Andrew Wood, freebsd-...@freebsd.org
That is the correct location. That hasn't changed.

~Paul
--
__________________

:(){ :|:& };:

Pete Wright

unread,
Jun 12, 2025, 2:09:23 PMJun 12
to Andrew Wood, freebsd-...@freebsd.org
have you installed any ports or packages that are daemons yet? that is
the correct location, so might just be a matter of it not existing
because no software depends on it yet since the base system just needs
/etc/rc.d/

-p

--
Pete Wright
pe...@nomadlogic.org


Andrew Wood

unread,
Jun 12, 2025, 2:28:44 PMJun 12
to ques...@freebsd.org

On 12/06/2025 19:08, Pete Wright wrote:
>
>
> have you installed any ports or packages that are daemons yet? that is
> the correct location, so might just be a matter of it not existing
> because no software depends on it yet since the base system just needs
> /etc/rc.d/
>
> -p
>
Thanks Pete

No ive not installed any daemons yet. Is each daemon responsible for
creating it with an mkdir -p then when it installs its script?

Im creating my own daemon which on install is complaining it does not
exist, so if so I will need to add an mkdir -p  to the install script of
the package.

Seems a bit strange I would have expected a directory to exist ready.

Thanks

Andrew


Pete Wright

unread,
Jun 12, 2025, 3:24:17 PMJun 12
to Andrew Wood, ques...@freebsd.org
it should be taken care of for you by the ports tree. so if your port
included an init script that would get included in your file manifest
for your pork or package, then the needed parent directories would be
created at install time.

if you are working outside of the ports tree then yea you'll probably
want to test for the existence of those directories before installing
files in them. although i'd highly recommend leveraging the ports tree
if possible when developing software for freebsd if possible
(https://docs.freebsd.org/en/books/porters-handbook/quick-porting/#porting-makefile)


-pete

--
Pete Wright
pe...@nomadlogic.org


Reply all
Reply to author
Forward
0 new messages