Bug 1176105 - Enable Squid systemd notify support
Summary: Enable Squid systemd notify support
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Adam Majer
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-02 19:17 UTC by Marcos Mello
Modified: 2020-09-14 08:25 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Mello 2020-09-02 19:17:52 UTC
Squid 4.11 added systemd notify support (it was broken, fixed in 4.12).

https://github.com/squid-cache/squid/commit/62f38c153d4455525353f13c25f54cd2f4423aff
https://github.com/squid-cache/squid/commit/c26cd1cb6a60ff196ef13c00e82576d3bfeb2e30

squid.spec needs to pull in systemd devel packages (BuildRequires: pkgconfig(libsystemd) + pkgconfig(systemd) I think). Then squid.service needs:

- Type=notify instead of Type=forking
- ExecStart= with squid --foreground
- NotifyAccess=all (signal sent by worker process)

Please also add KillMode=mixed to avoid systemd messing up with Squid children at shutdown.