Re: /usr/local/etc/rc.d missing
- In reply to: Andrew Wood : "Re: /usr/local/etc/rc.d missing"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Jun 2025 19:23:33 UTC
On 6/12/25 11:28, Andrew Wood wrote: > > 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. 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 pete@nomadlogic.org