Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #879651

Bug#889541: squid service disabled

From TarotApprentice <tarotapprentice@yahoo.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#889541: squid service disabled
Date 2018-02-04 11:10 +0100
Message-ID <vfpph-lV-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Package: squid
Version: 4.0.23

Below is a summary of a discussion with Amos from the squid software foundation regarding start up script problems with the packaged squid (4.0.23 from experimental). There is confusion because both sysv and systemd scripts are supplied.

Doing "service squid status" results in it saying the service is disabled.

service squid status
* squid.service - Squid Web Proxy Server
   Loaded: loaded (/lib/systemd/system/squid.service; disabled; vendor preset: e
nabled)
   Active: inactive (dead)
     Docs: man:squid(8)

One has to manually enable it (systemctl enable squid) or start it each time (service squid start)

--- Quoted message ---
Mark>
To summarise, Squid has both sysV and systemd scripts. It uses the sysV script by default.


To switch to using the systemd script means that it would need to either be manually enabled or auto-enabled, however Debian standards are to manually enable systemd scripts.


Is that correct?


Amos>
No, AIUI the mere presence of a .service means that systemd uses that one instead of systemd-sysv compatibility running the sysV script under systemd


So - the sysV script was only used as default up until .23 started installing the .service.


Once the .service existed any stop/start/restart done through systemctl or boot sequence (with systemd init) is using that. Manual executions of /etc/init.d/squid sysV script should be using the sysV .rcd script - as should boot sequence under sysV (eg Devaun and such).


Apart from this enable/disable issue the .rc and .service should be completely interchangeable.


The problem we have is that systemd state says Squid is "disabled" when for example a 4.0.20 or 3.5 package has installed and running fine on boot through the sysV init script.

Back to linux.debian.bugs.dist | Previous | Next | Find similar


Thread

Bug#889541: squid service disabled TarotApprentice <tarotapprentice@yahoo.com> - 2018-02-04 11:10 +0100

csiph-web