Smb work only without systemd service

Hello,

I made a fresh Manjaro Install on Vmware.

All is fine except Samba…

Tested version : 4.12.6 and 4.13.3

If I run a “systemctl start smb”, the command stay 90s and then timeout.

“systemctl status smb” give me that

Dec 20 14:59:28 manjaro systemd[1]: Starting Samba SMB Daemon...
Dec 20 14:59:29 manjaro smbd[2590]: [2020/12/20 14:59:29.009985,  0] ../../lib/util/become_daemon.c:135(daemon_ready)
Dec 20 14:59:29 manjaro smbd[2590]:   daemon_ready: daemon 'smbd' finished starting up and ready to serve connections
Dec 20 15:00:59 manjaro systemd[1]: smb.service: start operation timed out. Terminating.
Dec 20 15:00:59 manjaro systemd[1]: smb.service: Failed with result 'timeout'.
Dec 20 15:00:59 manjaro systemd[1]: Failed to start Samba SMB Daemon.

When I start smb, the smb server work, from Windows I can see folders and files until service give me a time out.

If I start this command manualy : /usr/bin/smbd --foreground --no-process-group $SMBDOPTIONS

I have no problem until I kill myself the process.

Do you have any clue ? Why the service timed out ?

Hi and welcome to the forum :+1:

Because of the default timeout setting…
https://www.freedesktop.org/software/systemd/man/systemd.service.html#TimeoutStartSec=