Bug 1188739 - there is no /var/run/squid, because /run is a tmpfs
Summary: there is no /var/run/squid, because /run is a tmpfs
Keywords:
Status: CLOSED DUPLICATE of bug 1173488
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-03 15:34 UTC by Account closed by the user
Modified: 2015-03-17 14:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-03 00:15:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Replace /var/run/squid with /usr/lib/tmpfiles.d/squid.conf (2.73 KB, application/mbox)
2015-03-17 14:12 UTC, Account closed by the user
no flags Details

Description Account closed by the user 2015-02-03 15:34:47 UTC
In the spec file "/var/run/squid" must be replaced with /usr/lib/tmpfiles.d/squid.conf :

d /var/run/squid 0750 squid squid


-thanks-

Comment 1 Stefan Krüger 2015-02-17 11:13:43 UTC
This breaks squid + logrotate a bit!

[root@f21~]# ps -ef | grep squid
squid     1842     1  0 Feb15 ?        00:00:00 /usr/sbin/squid -f /etc/squid/squid.conf

[root@f21~]# cat /etc/logrotate.d/squid
...
/usr/sbin/squid -k rotate 2>/dev/null


[root@f21~]# squid -k rotate
squid: ERROR: No running copy

[root@f21~]# strace squid -k rotate
...
open("/var/run/squid/squid.pid", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "squid: ERROR: No running copy\n", 30squid: ERROR: No running copy
) = 30

I always end up with no /var/log/squid/access.log after logrotate runs and thus no access logging anymore :(

Comment 2 Trevor Cordes 2015-02-19 22:25:53 UTC
Duplicate of bug# 1176318

Hopefully they'll push the proposed changes in 1176318 soon.

Comment 3 Henrik Nordström 2015-03-03 00:15:35 UTC

*** This bug has been marked as a duplicate of bug 1173488 ***

Comment 4 Account closed by the user 2015-03-17 14:12:17 UTC
Created attachment 1002825 [details]
Replace /var/run/squid with /usr/lib/tmpfiles.d/squid.conf

Use systemd facility to create files under tmpfs.


Note You need to log in before you can comment on or make changes to this bug.