quotacheck question

Michael Biebl biebl at debian.org
Mon May 26 12:30:52 BST 2014


Hi,

Am 26.05.2014 13:03, schrieb Michael Meskes:
> Hi,
> 
> I'm currently updating quota for quite a bit of things. But I'm at a loss as to
> what to do with /etc/init.d/quota. It seems, correct me if I'm wrong, that
> systemd comes with its own binary for quotacheck, which does not implement most
> of the features the old initscript does.

I guess you are talking about /lib/systemd/systemd-quotacheck and the
corresponding service /lib/systemd/system/systemd-quotacheck.service to
run the systemd-quotacheck binary during boot.

The systemd-quotacheck binary is simply a small wrapper [0] around
/sbin/quotacheck, i.e. it actually relies on the quota package being
installed. See the ConditionPathExists=/sbin/quotacheck in the .service
file [1].

That said, what features does the initscript provide that you are
missing from systemd-quotacheck.service?

 What is the "right" way to handle
> this? Alternatives? Or would you just remove yours? After all, systems either
> have quota installed and thus the quota provided services file, or it does not
> have the quotacheck binary either.

I guess, since systemd already ships the service files for running the
quota tools, we should just mask the quote SysV init script (we already
do that for a bunch of SysV services [2]). I don't think we need to run
quotacheck twice during boot.

We can ship the /dev/null symlink either in systemd or the quota
package. Either would be fine.

Does that answer your question?

Michael






[0]
http://anonscm.debian.org/gitweb/?p=pkg-systemd/systemd.git;a=blob;f=src/quotacheck/quotacheck.c;hb=HEAD
[1]
http://anonscm.debian.org/gitweb/?p=pkg-systemd/systemd.git;a=blob;f=units/systemd-quotacheck.service.in;hb=HEAD
[1] ls -al /lib/systemd/system | grep null

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140526/d8af0f3e/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list