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

Adrian Knoth adi at drcomp.erfurt.thur.de
Sun Feb 23 14:23:42 GMT 2014


Package: systemd
Version: 204-7
Severity: normal

Hi!

Disclaimer: This may well be a bug in the samba package, but since the
bug can only be triggered in conjunction with systemd, I file it against
systemd. Feel free to reassign.

Trying to stop samba via

   # systemctl stop samba

hangs forever (or at least longer than I have patience). This means
shutting down the machine hangs, too.

Surprisingly, using

   /etc/init.d/samba stop

works:

chopin:/home/adi# /etc/init.d/samba stop
[ ok ] Stopping samba-ad-dc (via systemctl): samba-ad-dc.service.
[ ok ] Stopping smbd (via systemctl): smbd.service.
[ ok ] Stopping nmbd (via systemctl): nmbd.service.

chopin:/home/adi# systemctl start samba
chopin:/home/adi# systemctl status samba
samba.service - LSB: ensure Samba daemons are started (nmbd and smbd)
   Loaded: loaded (/etc/init.d/samba)
   Active: active (exited) since Sun 2014-02-23 15:18:21 CET; 24s ago
  Process: 17908 ExecStop=/etc/init.d/samba stop (code=killed, signal=TERM)
  Process: 19903 ExecStart=/etc/init.d/samba start (code=exited, status=0/SUCCESS)

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).

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.

chopin:/home/adi# ps uax | grep smbd
root     19937  0.0  0.2 271864  5964 ?        Ss   15:18   0:00 /usr/sbin/smbd -D
root     19943  0.0  0.1 271864  4060 ?        S    15:18   0:00 /usr/sbin/smbd -D
root     20080  0.0  0.0   4308   720 ?        S    15:19   0:00 /bin/sh /etc/init.d/smbd stop
root     20085  0.0  0.0  27032  1232 ?        S    15:19   0:00 /bin/systemctl stop smbd.service



Cheers

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11.0 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash




More information about the Pkg-systemd-maintainers mailing list