systemctl restart squid; systemctl -l status squid
Job for squid.service failed because the control process exited with error code. See "systemctl status squid.service" and "journalctl -xe" for details. ● squid.service - Squid caching proxy Loaded: loaded (/usr/lib/systemd/system/squid.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2017-09-22 15:32:50 CEST; 6ms ago Process: 24042 ExecStop=/usr/sbin/squid -k shutdown -f $SQUID_CONF (code=exited, status=0/SUCCESS) Process: 26536 ExecStart=/usr/sbin/squid $SQUID_OPTS -f $SQUID_CONF (code=exited, status=1/FAILURE) Process: 26530 ExecStartPre=/usr/libexec/squid/cache_swap.sh (code=exited, status=0/SUCCESS) Main PID: 23577 (code=killed, signal=TERM) Sep 22 15:32:50 isbinfrepo systemd[1]: Starting Squid caching proxy... Sep 22 15:32:50 isbinfrepo squid[26536]: Ipc::Mem::Segment::create failed to shm_open(/squid-cf__metadata.shm): (17) File exists Sep 22 15:32:50 isbinfrepo systemd[1]: squid.service: control process exited, code=exited status=1 Sep 22 15:32:50 isbinfrepo systemd[1]: Failed to start Squid caching proxy. Sep 22 15:32:50 isbinfrepo systemd[1]: Unit squid.service entered failed state. Sep 22 15:32:50 isbinfrepo systemd[1]: squid.service failed.Similar error referring to a different file : Ipc::Mem::Segment::create failed to shm_open(/squid-cf__queues.shm): (17) File exists
This _may_ be due to SE Linux (source).
cache_dir type directory MBytes L1 L2 [options]
2017/09/22 15:14:37| Set Current Directory to /var/spool/squid 2017/09/22 15:14:37| Creating missing swap directories 2017/09/22 15:14:37| /data/squidCache exists 2017/09/22 15:14:37| Making directories in /data/squidCache/00 2017/09/22 15:14:37| Making directories in /data/squidCache/01 2017/09/22 15:14:37| Making directories in /data/squidCache/02 2017/09/22 15:14:37| Making directories in /data/squidCache/0E 2017/09/22 15:14:38| Making directories in /data/squidCache/0F