[Pkg-systemd-maintainers] Bug#739887: Bug#739887: systemd cannot stop samba (hangs forever)

Michael Stapelberg stapelberg at debian.org
Thu Feb 27 21:35:01 GMT 2014


Hi Adrian,

Adrian Knoth <adi at drcomp.erfurt.thur.de> writes:
> Surprisingly, using
>
>    /etc/init.d/samba stop
>
> works:
The unexpected difference in behavior stems from the fact that
/etc/init.d/samba is missing the “. /lib/lsb/init-functions” line, hence
the stop call is not redirected to systemd.


> chopin:/home/adi# systemctl stop samba
> [hangs, so let's switch to another  terminal]
>
> chopin:/home/adi# systemctl status samba
> samba.service - LSB: ensure Samba daemons are started (nmbd and smbd)
>    Loaded: loaded (/etc/init.d/samba)
>    Active: deactivating (stop) since Sun 2014-02-23 15:19:53 CET; 37s ago
>   Process: 19903 ExecStart=/etc/init.d/samba start (code=exited, status=0/SUCCESS)
>   Control: 20064 (samba)
>    CGroup: name=systemd:/system/samba.service
>            └─control
>              ├─20064 /bin/sh /etc/init.d/samba stop
>              ├─20080 /bin/sh /etc/init.d/smbd stop
>              └─20085 /bin/systemctl stop smbd.service
>
> Feb 23 15:18:21 chopin samba[19903]: Starting nmbd (via systemctl): nmbd.service.
> Feb 23 15:18:21 chopin samba[19903]: Starting smbd (via systemctl): smbd.service.
> Feb 23 15:18:21 chopin samba[19903]: Starting samba-ad-dc (via systemctl): samba-ad-dc.service.
> Feb 23 15:18:21 chopin systemd[1]: Started LSB: ensure Samba daemons are started (nmbd and smbd).
> Feb 23 15:19:53 chopin systemd[1]: Stopping LSB: ensure Samba daemons are started (nmbd and smbd)...
> Feb 23 15:19:54 chopin samba[20064]: Stopping samba-ad-dc (via systemctl): samba-ad-dc.service.
Can you also provide the output of “systemctl dump” and “systemctl
list-jobs” in that situation please?

Also, which version of the samba package? And can you provide your
configs? samba-ad-dc is not running at all for me with my configuration,
and stopping samba (2:4.1.4+dfsg-3) works without any problems.

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list