Package: quota
Version: 4.01-8
Severity: important
Tags: patch

On my jessie system the quota service fails to start without any warning or
error while systemctl reports a succesfull start. This happens because the check
on line 49 of file /usr/share/quota/quotaon.sh

  quotacheck -ap | grep -q "is off" || exit 0

can silently 'exit 0' whenever no quota-enabled filesystem are mounted.
This can be the right behaviour if every filesystem hasn't usrquota or
grpquota, but it isn't if quotaon is executed before mounting all filesystems.

I solved adding

  After=local-fs.target

in quota.service file.


Bye
Simone



-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages quota depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  e2fslibs               1.42.12-1.1
ii  init-system-helpers    1.22
ii  libc6                  2.19-18
ii  libcomerr2             1.42.12-1.1
ii  libdbus-1-3            1.8.18-0+deb8u1
ii  libldap-2.4-2          2.4.40+dfsg-1
ii  libnl-3-200            3.2.24-2
ii  libnl-genl-3-200       3.2.24-2
ii  libtirpc1              0.2.5-1
ii  libwrap0               7.6.q-25
ii  lsb-base               4.1+Debian13+nmu1

quota recommends no packages.

Versions of packages quota suggests:
ii  libnet-ldap-perl                1:0.6400+dfsg-2
ii  postfix [mail-transport-agent]  2.11.3-1
ii  rpcbind                         0.2.1-6

-- debconf information excluded
--- old/quota.service	2014-06-19 11:20:32.000000000 +0200
+++ new/quota.service	2015-07-25 12:57:31.316838922 +0200
@@ -2,7 +2,7 @@
 Description=Check And Enable File System Quotas
 Documentation=man:quotaon(8)
 DefaultDependencies=no
-After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service
+After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service local-fs.target
 Before=sysinit.target shutdown.target
 ConditionPathExists=/usr/share/quota/quotaon.sh
 

Reply via email to