[Samba] smbd nmbd and winbind daemons do not start

Anderson Sampaio Mello anderson.sampaio.mello at gmail.com
Fri May 13 05:17:59 UTC 2022


The solution to the problem was to install the SystemD support that I had
forgotten about

Em qua., 30 de mar. de 2022 às 00:54, Anderson Sampaio Mello <
anderson.sampaio.mello at gmail.com> escreveu:

> Hello samba team.
>
> I compiled and installed version 4.15.5 of samba, but the daemons do not
> start through the systemd units, provided in the samba source code, I
> copied the units from
>
> /usr/src/samba-4.15.5/bin/default/packaging/systemd/winbind.service
> /usr/src/samba-4.15.5/bin/default/packaging/systemd/nmb.service
> /usr/src/samba-4.15.5/bin/default/packaging/systemd/smb.service
>
> to /etc/systemd/system and create the file that contains the configuration
> options for each daemon, but the units only start when I change:
>
> Type=notify
> for:
> Type=simple
>
> In previous versions 4.13 and 4.14 that I tested this did not happen.
>
> When I start from the terminal the daemons start without showing any error.
>
> Here is the content of the units:
>
> systemctl cat smb.service
>
> # /etc/systemd/system/smb.service
> [Unit]
> Description=Samba SMB Daemon
> Documentation=man:smbd(8) man:samba(7) man:smb.conf(5)
> Wants=network-online.target
> After=network.target network-online.target nmb.service winbind.service
>
> [Service]
> Type=notify
> PIDFile=/usr/local/samba/var/run/samba/smbd.pid
> LimitNOFILE=16384
> EnvironmentFile=-/usr/local/samba/etc/sysconfig/samba
> ExecStart=/usr/local/samba/sbin/smbd --foreground --no-process-group
> $SMBDOPTIONS
> ExecReload=/bin/kill -HUP $MAINPID
> LimitCORE=infinity
>
> [Install]
> WantedBy=multi-user.target
>
> systemctl cat nmb.service
>
> # /etc/systemd/system/nmb.service
> [Unit]
> Description=Samba NMB Daemon
> Documentation=man:nmbd(8) man:samba(7) man:smb.conf(5)
> Wants=network-online.target
> After=network.target network-online.target
>
> [Service]
> Type=notify
> PIDFile=/usr/local/samba/var/run/samba/nmbd.pid
> EnvironmentFile=-/usr/local/samba/etc/sysconfig/samba
> ExecStart=/usr/local/samba/sbin/nmbd --foreground --no-process-group
> $NMBDOPTIONS
> ExecReload=/bin/kill -HUP $MAINPID
> LimitCORE=infinity
>
> [Install]
> WantedBy=multi-user.target
>
> winbind.service
>
> # /etc/systemd/system/winbind.service
> [Unit]
> Description=Samba Winbind Daemon
> Documentation=man:winbindd(8) man:samba(7) man:smb.conf(5)
> After=network.target nmb.service
>
> [Service]
> Type=notify
> PIDFile=/usr/local/samba/var/run/samba/winbindd.pid
> EnvironmentFile=-/usr/local/samba/etc/sysconfig/samba
> ExecStart=/usr/local/samba/sbin/winbindd --foreground --no-process-group
> $WINBINDOPTIONS
> ExecReload=/bin/kill -HUP $MAINPID
> LimitCORE=infinity
>
> [Install]
> WantedBy=multi-user.target
>
> I know it may not be anything related to samba, but could someone help
> please?
>
> The server has a debian system version 11.3.
>


More information about the samba mailing list