Services "enabled at boot but, not running"

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
dolphin_oracle
Developer
Posts: 22255
Joined: Sun Dec 16, 2007 12:17 pm

Re: Services "enabled at boot but, not running"

#11 Post by dolphin_oracle »

so lets try manually enabling smbd under sysVinit

assuming the init scripts are unmodified.

Code: Select all

sudo update-rc.d smbd remove
sudo update-rc.d nmbd remove

sudo update-rc.d smbd defaults
sudo update-rc.d nmbd defaults
and reboot
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Services "enabled at boot but, not running"

#12 Post by rambo919 »

dolphin_oracle wrote: Sun Feb 16, 2025 2:52 pm so lets try manually enabling smbd under sysVinit
snip
did that now, have not rebooted yet, the same error happened every time I did one of the four commands and might be relevant

Code: Select all

insserv: warning: could not find all dependencies for $dbus
insserv: warning: could not find all dependencies for $dbus
EDIT: rebooted, no change, still enabled at boot but not actually enabled until I do so manually

User avatar
dolphin_oracle
Developer
Posts: 22255
Joined: Sun Dec 16, 2007 12:17 pm

Re: Services "enabled at boot but, not running"

#13 Post by dolphin_oracle »

ok so not starting because a dbus depend is missing?

that's a weird one, dbus is sort of important. do you have dbus disabled? (i'm not sure a modern desktop will run without it).

maybe we should check the init scripts

Code: Select all

cat /etc/dbus /etc/init.d/smbd /etc/init.d/nmbd cat /etc/init.d/.depend.start /etc/init.d/.depend.boot
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

rambo919
Posts: 209
Joined: Sat Sep 24, 2022 1:32 pm

Re: Services "enabled at boot but, not running"

#14 Post by rambo919 »

dolphin_oracle wrote: Sun Feb 16, 2025 4:10 pm ok so not starting because a dbus depend is missing?

that's a weird one, dbus is sort of important. do you have dbus disabled? (i'm not sure a modern desktop will run without it).

maybe we should check the init scripts

Code: Select all

cat /etc/dbus /etc/init.d/smbd /etc/init.d/nmbd cat /etc/init.d/.depend.start /etc/init.d/.depend.boot
dbus is defintely running as a service.... here is the output

Code: Select all

$ cat /etc/dbus /etc/init.d/smbd /etc/init.d/nmbd cat /etc/init.d/.depend.start /etc/init.d/.depend.boot
cat: /etc/dbus: No such file or directory
#!/bin/sh

### BEGIN INIT INFO
# Provides:          smbd
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Should-Start:      slapd cups
# Should-Stop:       slapd cups
# Short-Description: Samba SMB/CIFS daemon (smbd)
# Description: server to provide SMB/CIFS services to clients
### END INIT INFO

NAME=smbd
DAEMON=/usr/sbin/$NAME
PIDFILE=/run/samba/$NAME.pid
DESC="Samba SMB/CIFS daemon"
SCRIPT=smbd

# clear conflicting settings from the environment
unset TMPDIR

test -x $DAEMON || exit 0
/usr/share/samba/is-configured $NAME || exit 0

[ -f /etc/default/samba ] && . /etc/default/samba

. /lib/lsb/init-functions

case "$1" in
        (start)
                # Update /etc/apparmor.d/samba/smbd-shares
                if [ -x /usr/share/samba/update-apparmor-samba-profile ]; then
                        /usr/share/samba/update-apparmor-samba-profile || exit $?
                fi
                log_daemon_msg "Starting $DESC" $NAME
                start-stop-daemon --start --quiet --oknodo --exec $DAEMON --pidfile $PIDFILE -- -D $SMBDOPTIONS
                log_end_msg $?
                ;;
        (stop)
                log_daemon_msg "Stopping $DESC" $NAME
                start-stop-daemon --stop  --quiet --oknodo --exec $DAEMON --pidfile $PIDFILE
                log_end_msg $?
                ;;
        (reload)
                log_daemon_msg "Reloading $DESC" $NAME
                start-stop-daemon --stop  --quiet --oknodo --exec $DAEMON --pidfile $PIDFILE --signal HUP
                log_end_msg $?
                ;;
        (restart|force-reload)
                $0 stop && sleep 1 && $0 start
                ;;
        (status)
                status_of_proc -p $PIDFILE $DAEMON $NAME
                ;;
        (*)
                echo "Usage: /etc/init.d/$SCRIPT {start|stop|reload|restart|force-reload|status}"
                exit 1
                ;;
esac
#!/bin/sh

### BEGIN INIT INFO
# Provides:          nmbd
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# X-Start-Before:    smbd
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Samba NetBIOS nameserver (nmbd)
# Description: NetBIOS name server to provide NetBIOS over IP naming services
#              to clients
### END INIT INFO

NAME=nmbd
DAEMON=/usr/sbin/$NAME
PIDFILE=/run/samba/$NAME.pid
DESC="NetBIOS name server"
SCRIPT=nmbd

# clear conflicting settings from the environment
unset TMPDIR

test -x $DAEMON || exit 0
/usr/share/samba/is-configured $NAME || exit 0

[ -f /etc/default/samba ] && . /etc/default/samba

. /lib/lsb/init-functions

case "$1" in
        (start)
                log_daemon_msg "Starting $DESC" $NAME
                start-stop-daemon --start --quiet --oknodo --exec $DAEMON --pidfile $PIDFILE -- -D $NMBDOPTIONS
                log_end_msg $?
                ;;
        (stop)
                log_daemon_msg "Stopping $DESC" $NAME
                start-stop-daemon --stop  --quiet --oknodo --exec $DAEMON --pidfile $PIDFILE
                log_end_msg $?
                ;;
        (restart|force-reload)
                $0 stop && sleep 1 && $0 start
                ;;
        (status)
                status_of_proc -p $PIDFILE $DAEMON $NAME
                ;;
        (*)
                echo "Usage: /etc/init.d/$SCRIPT {start|stop|restart|force-reload|status}"
                exit 1
                ;;
esac
cat: cat: No such file or directory
TARGETS = killprocs console-setup.sh rsyslog tlp virtualbox mono-xsp4 open-vm-tools cgmanager monitorix vmware-USBArbitrator nfs-kernel-server ckb-next-daemon virtualbox-guest-utils pulseaudio-enable-autospawn samba-ad-dc single acpi-fakekey sudo nmbd mariadb anydesk clamav-freshclam dbus proftpd vmware mdadm chrony lactd haveged smartmontools cgproxy iperf3 webmin loadcpufreq anacron rmnologin acpid rsync network-manager bluetooth avahi-daemon spice-vdagent cpufrequtils openvpn sddm saned cups cups-browsed smbd bootlogs winbind cron plymouth rc.local stop-bootlogd
INTERACTIVE = console-setup.sh openvpn
single: killprocs
mariadb: rsyslog
anydesk: rsyslog
clamav-freshclam: rsyslog
dbus: rsyslog
proftpd: rsyslog
vmware: rsyslog
mdadm: rsyslog
chrony: rsyslog
lactd: rsyslog
haveged: rsyslog
smartmontools: rsyslog
cgproxy: cgmanager
iperf3: rsyslog
webmin: rsyslog
loadcpufreq: rsyslog
anacron: rsyslog
rmnologin: sudo
acpid: rsyslog
rsync: rsyslog
network-manager: dbus
bluetooth: dbus
avahi-daemon: dbus
spice-vdagent: dbus
cpufrequtils: loadcpufreq
openvpn: network-manager
sddm: dbus
saned: avahi-daemon
cups: avahi-daemon
cups-browsed: avahi-daemon
smbd: cups nmbd
winbind: rsyslog
cron: winbind
plymouth: cron smbd bootlogs sddm saned cups-browsed openvpn bluetooth spice-vdagent cpufrequtils mariadb anydesk clamav-freshclam proftpd vmware mdadm chrony lactd haveged smartmontools cgproxy iperf3 webmin anacron rmnologin acpid rsync tlp virtualbox mono-xsp4 open-vm-tools monitorix vmware-USBArbitrator nfs-kernel-server ckb-next-daemon virtualbox-guest-utils pulseaudio-enable-autospawn samba-ad-dc acpi-fakekey console-setup.sh
rc.local: cron smbd bootlogs sddm saned cups-browsed openvpn bluetooth spice-vdagent cpufrequtils mariadb anydesk clamav-freshclam proftpd vmware mdadm chrony lactd haveged smartmontools cgproxy iperf3 webmin anacron rmnologin acpid rsync tlp virtualbox mono-xsp4 open-vm-tools monitorix vmware-USBArbitrator nfs-kernel-server ckb-next-daemon virtualbox-guest-utils pulseaudio-enable-autospawn samba-ad-dc acpi-fakekey console-setup.sh
stop-bootlogd: cron smbd bootlogs sddm saned cups-browsed openvpn bluetooth spice-vdagent cpufrequtils mariadb anydesk clamav-freshclam proftpd vmware mdadm chrony lactd haveged smartmontools cgproxy iperf3 webmin anacron rmnologin acpid rsync tlp virtualbox mono-xsp4 open-vm-tools monitorix vmware-USBArbitrator nfs-kernel-server ckb-next-daemon virtualbox-guest-utils pulseaudio-enable-autospawn samba-ad-dc acpi-fakekey console-setup.sh
TARGETS = mountkernfs.sh efimount udev mountdevsubfs.sh keyboard-setup.sh bootlogd hwclock.sh hostname.sh checkroot.sh cryptdisks-early kmod checkroot-bootclean.sh cryptdisks mountnfs.sh mountnfs-bootclean.sh mountall.sh mountall-bootclean.sh networking checkfs.sh urandom brightness rpcbind nfs-common alsa-utils ufw procps lm-sensors plymouth-log bootmisc.sh mount-configfs stop-bootlogd-single x11-common
INTERACTIVE = udev keyboard-setup.sh checkroot.sh cryptdisks-early cryptdisks checkfs.sh
udev: mountkernfs.sh
mountdevsubfs.sh: udev
keyboard-setup.sh: mountdevsubfs.sh
bootlogd: mountdevsubfs.sh
hwclock.sh: bootlogd
hostname.sh: bootlogd
checkroot.sh: hostname.sh keyboard-setup.sh
cryptdisks-early: checkroot.sh udev
kmod: checkroot.sh
checkroot-bootclean.sh: checkroot.sh
cryptdisks: cryptdisks-early
mountnfs.sh: mountall.sh mountall-bootclean.sh networking rpcbind nfs-common
mountnfs-bootclean.sh: mountall.sh mountall-bootclean.sh mountnfs.sh
mountall.sh: checkroot-bootclean.sh checkfs.sh
mountall-bootclean.sh: mountall.sh
networking: mountkernfs.sh mountall.sh mountall-bootclean.sh urandom procps
checkfs.sh: checkroot.sh cryptdisks
urandom: hwclock.sh mountall.sh mountall-bootclean.sh
brightness: mountall.sh mountall-bootclean.sh
rpcbind: networking
nfs-common: hwclock.sh rpcbind
alsa-utils: mountall.sh mountall-bootclean.sh mountnfs.sh mountnfs-bootclean.sh
ufw: mountall.sh mountall-bootclean.sh
procps: bootlogd udev mountall.sh mountall-bootclean.sh
lm-sensors: mountnfs.sh mountnfs-bootclean.sh
plymouth-log: mountall.sh mountall-bootclean.sh mountnfs.sh mountnfs-bootclean.sh
bootmisc.sh: checkroot-bootclean.sh udev mountall-bootclean.sh mountnfs.sh mountnfs-bootclean.sh mountall.sh
mount-configfs: kmod mountkernfs.sh
stop-bootlogd-single: mountall.sh mountall-bootclean.sh
x11-common: mountnfs.sh mountnfs-bootclean.sh

Post Reply

Return to “MX Help”