Re: 15.0 - rc.conf ignores a setting
- In reply to: infoomatic : "Re: 15.0 - rc.conf ignores a setting"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Dec 2025 00:07:42 UTC
infoomatic <infoomatic@gmx.at> writes:
> I uninstalled FreeBSD-set-base plus the sets that were pulled in and
> did autoremove the packages. Now I have FreeBSD-set-kernels,
> FreeBSD-set-minimal, FreeBSD-set-minimal-jail and also the package
> FreeBSD-rc is installed.
I didn't ask you to do any of this. Just confirming that you already
had FreeBSD-rc (despite it being missing fromt the list that you posted
earlier) would have sufficed.
> However, the setting is ignored again at startup - /var/run/noshutdown
> is not being created.
I took a closer look at the script that creates it. Turns out, it can't
possibly work as written. I wonder if it was ever tested?
% rcorder /etc/rc.d/* |& grep -A1 noshutdown
/etc/rc.d/noshutdown
/etc/rc.d/cleanvar
Take a wild guess what the cleanvar script does...
DES
--
Dag-Erling Smørgrav - des@FreeBSD.org