FS#51272 - [squid] Please add "d /var/log/squid 0755 - - -" in /usr/lib/tmpfiles.d/squid.conf

Attached to Project: Community Packages
Opened by Eric Wang (enihcam) - Friday, 07 October 2016, 10:45 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 10 October 2016, 10:04 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
For systems with /var/log mounted in volatile storage (e.g. tmpfs), /var/log/squid needs to be created at boot time, or you will get the following error:
[code]
Oct 07 18:37:15 archnet squid[320]: WARNING: Cannot write log file: /var/log/squid/cache.log
Oct 07 18:37:15 archnet squid[320]: /var/log/squid/cache.log: No such file or directory
Oct 07 18:37:15 archnet squid[320]: messages will be sent to 'stderr'.
[/code]

For your reference, please take a look at /usr/lib/tmpfiles.d/samba.conf in samba package. We need to do the same.

Additional info:
* package version(s)
* config and/or log files etc.

Steps to reproduce:
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 10 October 2016, 10:04 GMT
Reason for closing:  Fixed
Comment by Dave Reisner (falconindy) - Friday, 07 October 2016, 11:28 GMT
Seems like a dupe of  FS#41041 . samba is an outlier in this regard (56 other packages ship a /var/log/$foo directory and will need this crap).
Comment by Doug Newgard (Scimmia) - Friday, 07 October 2016, 15:29 GMT
As I said in the other ticket, non-standard setups require you to do some work. This would be part of it.

Loading...