[arch-dev-public] Use systemd timers instead of /etc/cron.{hourly, daily, weekly, monthly}?

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sat Mar 29 14:38:58 EDT 2014


On 03/29/2014 04:51 AM, Thomas Bächler wrote:
> Am 29.03.2014 01:31, schrieb Gerardo Exequiel Pozzi:
>> I guess for man-db should be better use tmpfiles instead of mkdir in the
>> service unit.
> 
> The old cron.d script had the mkdir call inside with a comment that the
> directory should be recreated in case of deletion. I guess having it
> inside the service makes sure the service works even if someone rm -r's
> the directory at runtime.

Yes, but the same things can happens for other directories on tmpfiles.d.

Anyway, /var/cache/man is already define:

$ grep cache /usr/lib/tmpfiles.d/systemd.conf
d /var/cache/man - - - 30d

> 
> IMO mkdir should not be necessary at all, man-db should create the
> directory itself when needed.
> 

Right.


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-dev-public/attachments/20140329/48633a63/attachment.asc>


More information about the arch-dev-public mailing list