Debian Bug report logs - #928864
samba: please update systemd units to refer to /run, not /var/run

version graph

Package: src:samba; Maintainer for src:samba is Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>;

Reported by: Simon McVittie <smcv@debian.org>

Date: Sun, 12 May 2019 08:54:08 UTC

Severity: minor

Found in version samba/2:4.9.5+dfsg-3

Fixed in version 2:4.10.7+dfsg-1

Done: Mathieu Parent <math.parent@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>:
Bug#928864; Package src:samba. (Sun, 12 May 2019 08:54:11 GMT) (full text, mbox, link).


Acknowledgement sent to Simon McVittie <smcv@debian.org>:
New Bug report received and forwarded. Copy sent to Debian Samba Maintainers <pkg-samba-maint@lists.alioth.debian.org>. (Sun, 12 May 2019 08:54:11 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Simon McVittie <smcv@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: samba: please update systemd units to refer to /run, not /var/run
Date: Sun, 12 May 2019 09:51:48 +0100
Source: samba
Version: 2:4.9.5+dfsg-3
Severity: minor

systemd in buster logs a warning on each `systemctl daemon-reload` when
units refer to a PID file in /run via the compatibility symlink /var/run:

May 12 09:37:20 sentinel systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
May 12 09:37:20 sentinel systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly.

Please use /run/samba/smbd.pid and /run/samba/nmbd.pid instead. I can
confirm that the obvious edit to /lib/systemd/system/?mbd.service
stops the warning. I believe this corresponds to changing
--with-piddir=/run/samba to --with-piddir=/var/run/samba in debian/rules.

/var/run is guaranteed to be a compatibility symlink to /run on all
post-2012 Debian systems, whether they were booted with systemd or not.
Policy §9.1.1.8 requires this, and sysvinit (>= 2.88dsf-29) ensures
that it is the case.

Thanks,
    Simon

-- Package-specific info:
* /etc/samba/smb.conf present, but not attached
* /var/lib/samba/dhcp.conf not present

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba depends on:
ii  adduser           3.118
ii  dpkg              1.19.6
ii  libbsd0           0.9.1-2
ii  libc6             2.28-10
ii  libldb1           2:1.5.1+really1.4.6-3
ii  libpam-modules    1.3.1-5
ii  libpam-runtime    1.3.1-5
ii  libpopt0          1.16-12
ii  libpython2.7      2.7.16-2
ii  libtalloc2        2.1.14-2
ii  libtdb1           1.3.16-2+b1
ii  libtevent0        0.9.37-1
ii  lsb-base          10.2019031300
ii  procps            2:3.3.15-2
ii  python            2.7.16-1
ii  python-dnspython  1.16.0-1
ii  python-samba      2:4.9.5+dfsg-3
ii  python2.7         2.7.16-2
ii  samba-common      2:4.9.5+dfsg-3
ii  samba-common-bin  2:4.9.5+dfsg-3
ii  samba-libs        2:4.9.5+dfsg-3
ii  tdb-tools         1.3.16-2+b1

Versions of packages samba recommends:
ii  attr                1:2.4.48-4
ii  logrotate           3.14.0-4
ii  samba-dsdb-modules  2:4.9.5+dfsg-3
ii  samba-vfs-modules   2:4.9.5+dfsg-3

Versions of packages samba suggests:
pn  bind9          <none>
pn  bind9utils     <none>
pn  ctdb           <none>
pn  ldb-tools      <none>
pn  ntp | chrony   <none>
pn  smbldap-tools  <none>
pn  ufw            <none>
pn  winbind        <none>

-- no debconf information



Reply sent to Mathieu Parent <math.parent@gmail.com>:
You have taken responsibility. (Thu, 12 Nov 2020 08:39:08 GMT) (full text, mbox, link).


Notification sent to Simon McVittie <smcv@debian.org>:
Bug acknowledged by developer. (Thu, 12 Nov 2020 08:39:08 GMT) (full text, mbox, link).


Message #10 received at 928864-done@bugs.debian.org (full text, mbox, reply):

From: Mathieu Parent <math.parent@gmail.com>
To: 928864-done@bugs.debian.org
Subject: Already fixed in bullseye
Date: Thu, 12 Nov 2020 09:35:54 +0100
Version: 2:4.10.7+dfsg-1

Hi,

This is a dup of #934540, fixed in 2:4.10.7+dfsg-1

Unfortunately, this won't be fixed in buster (at least, not by me).

Regards
-- 
Mathieu Parent



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 11 Dec 2020 07:27:40 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 27 10:29:45 2024; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.