On Sun, 30 Mar 2025 at 13:11, Niels Müller Larsen <aros...@protonmail.com> wrote:
> On Sun, Mar 30, 2025 at 12:55, Greg Troxel <g...@lexort.com> wrote: > > Niels Müller Larsen <aros...@protonmail.com> writes: > > > I have installed the above, and it runs nice and smooth in a node app for > > teaching. > > That is if I start mariadb from the CLI. > > > > If I try to put > > mariadb=YES > > into /etc/rc.conf and reboot, the xconsole says “mariadb started” but there > > is no trace of it, and I still have to start it manually. > > > > The log files give no clues. > > A guess is that something in the startup assumes that PATH has more in > it, than it does. You didn't say what "start from CLI" means. > > Set your PATH to just default, no pkgsrc, clean env and > > sh -x /etc/rc.d/mariadb start > > and read the output > > Thnx > > Start from CLI means > $ doas service mariadb start > > As for your suggestion I will try that You might also want to try starting from the command line but clearing the environment first: doas env -i /etc/rc.d/mariadb start Also check that the installed mariadb rc.d file matches the current shipped: diff /etc/rc.d/mariadb /usr/pkg/share/examples/rc.d/mariadb (Running mariadb 11.4.5 on NetBSD-10.1/amd64 here, but as always: "works on my machine" is of limited help :) David