FS#51257 - [squid] Do not start squid-rotate.timer statically
Attached to Project:
Community Packages
Opened by Jonas Hahnfeld (hahnjo) - Thursday, 06 October 2016, 15:12 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 19 December 2016, 14:48 GMT
Opened by Jonas Hahnfeld (hahnjo) - Thursday, 06 October 2016, 15:12 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 19 December 2016, 14:48 GMT
|
Details
Description:
squid-rotate.timer is currently enabled by a symlink in /usr/lib/systemd/system/timers.target.wants/ and $ systemctl disable squid-rotate.timer does not work. This is bad when squid does not run by default because the corresponding unit will then fail each time executed. Instead I think it should be enabled in the .install file so that the user can choose to disable the timer. Additional info: * squid 3.5.21-1 |
This task depends upon
Closed by Sergej Pupykin (sergej)
Monday, 19 December 2016, 14:48 GMT
Reason for closing: Fixed
Additional comments about closing: added [install] section and fixed install messages.
Monday, 19 December 2016, 14:48 GMT
Reason for closing: Fixed
Additional comments about closing: added [install] section and fixed install messages.
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias settings in the [Install] section, and DefaultInstance for template units).
It is probably missing the following section:
[Install]
WantedBy=timers.target
Additionally, I think that it shouldn't print out the message "- squid-rotate.timer is not enabled by default" on every install but rather only on an upgrade from 3.5.22-1