Closed shoulders closed 1 month ago
That's funny, because Webmin already runs systemctl enable dbus
to enable an action at boot time.
If go check Webmin -> Webmin Actions Log, what commands does it show are being run when you enable it in the Bootup and Shutdown module?
That's funny, because Webmin already runs systemctl enable dbus to enable an action at boot time.
Mine on my dev site was not running for some reason. The startup on boot might be broken rather than it being a dbus
thing.
dbus
on statrtupdbus
on startupDisabled actions dbus
Enabled actions dbus
Does the file /etc/init.d/dbus exist on your system? That may be confusing webmin into thinking it's an old-style non-systemd service..
/etc/init.d/dbus
exists, and content below
/etc/init.d/dbus
exists, and content below
Ok I dug into this some more - turns out that Webmin was showing both the dbus
init.d script, and the dbus.service
systemd action, even though they are the same thing! This will be fixed properly in the next release ..
the background
I was messing about trying to fix an the following issue with dbus
https://forum.virtualmin.com/t/resolvectl-sd-bus-open-system-no-such-file-or-directory/128058
the issue
I cannot use Webmin to re-enable the
dbus
service at startupsteps to reproduce
Webmin --> System --> Bootup and Shutdown
dbus
dbus
and then click onDisable On Boot
dbus
and then click onStart On Boot
So you can see I cannot enable the service to start at boot with this method.
I also tried
I also tried editing
dbus
and then selectingStart at boot time
which also had no effectworkaround
I opened up the terminal (in root mode) and ran
sudo systemctl enable dbus
This worked I now have my
dbus
back to start at bootProposed solution
Fix the commands that webmin is issuing to set a service to boot at startup
additional
I have not tried this on any other service becasue I don't know what is safe to stop and start