Anderson Sampaio Mello
2022-Mar-30 03:54 UTC
[Samba] smbd nmbd and winbind daemons do not start
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.
30.03.2022 06:54, Anderson Sampaio Mello via samba wrote:> 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.Usually this means your samba is not built with systemd support. For Type=notify services, the service should use libsystemd and send a notification when it finished initializing. /mjt
Anderson Sampaio Mello
2022-May-13 05:17 UTC
[Samba] smbd nmbd and winbind daemons do not start
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. >