Mailinglist Archive: opensuse (880 mails)

< Previous Next >
Re: [opensuse] nmbd does not start at boot in openSUSE 12.2-SOLVED
2013. augusztus 24. 12:48 napon Andrey Borzenkov <arvidjaar@xxxxxxxxx> írta:

What should I do if I wanted to start nmb through the script and not by the

Just like in the sysvinit case, you need to explicitly configure it to
be started during boot. Think of /etc/systemd/system as
of /etc/init.d. Having script there is not enough to make script run
on startup; you also need to link it in proper "run-level". If service
file has correct [Install] section, you can do it using "systemctl
enable nmbd.service" (similar to chkconfig nmbd on). If service file
does not have [Install] section, you can manually link it
into /etc/systemd/system/ (or so that service is started wherever you boot.
Again, this is exactly the same with sysvinit scripts lacking meta
information for chkconfig - you manually link into
respective /etc/init.d/rc?.d directory.

Andrey, sorry for the late answer.
Thanks for your explanation.

I looked at the service files and they have [Install] section.
I applied systemctl enable:

# systemctl enable nmb.service
ln -s '/etc/systemd/system/nmb.service'

# systemctl enable smb.service
ln -s '/etc/systemd/system/smb.service'

# systemctl enable winbind.service
ln -s '/etc/systemd/system/winbind.service'

But the service are still not started.

# systemctl status nmb.service
nmb.service - Samba NMB Daemon
Loaded: loaded (/etc/systemd/system/nmb.service; enabled)
Active: failed (Result: resources) since Fri, 30 Aug 2013 13:46:41
+0200; 13min ago
CGroup: name=systemd:/system/nmb.service

# systemctl status smb.service
smb.service - Samba SMB Daemon
Loaded: loaded (/etc/systemd/system/smb.service; enabled)
Active: failed (Result: resources) since Fri, 30 Aug 2013 13:43:19
+0200; 18min ago
CGroup: name=systemd:/system/smb.service

Aug 30 13:43:18 linux smbd[3765]: [2013/08/30 13:43:18.971776, 0]

I can't start them manually either:

# systemctl start nmb.service
Job failed. See system journal and 'systemctl status' for details.
# systemctl start smb.service
Job failed. See system journal and 'systemctl status' for details

Here are the contents of service files:

# cat /etc/systemd/system/nmb.service
Description=Samba NMB Daemon

ExecStart=/usr/sbin/nmbd $NMBDOPTIONS

# cat /etc/systemd/system/smb.service
Description=Samba SMB Daemon nmb.service winbind.service

ExecStart=/usr/sbin/smbd $SMBDOPTIONS


Should I edit the service files?



To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages