Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453050 - net-proxy/squid-3.1.22: {restart,stop} init script gives ERROR: Could not send signal 15 to process XXXX: (1) Operation not permitted
Summary: net-proxy/squid-3.1.22: {restart,stop} init script gives ERROR: Could not se...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Eray Aslan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-19 22:35 UTC by Markos Chandras (RETIRED)
Modified: 2013-01-27 14:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markos Chandras (RETIRED) gentoo-dev 2013-01-19 22:35:54 UTC
blade-vm hwoarang # /etc/init.d/squid restart
 * Stopping squid ...
squid: ERROR: Could not send signal 15 to process 2489: (1) Operation not permitted
 * Squid shutdown failed, probably service is already down.               [ ok ]
 * Starting squid ...    

Even running /etc/init.d/squid stop does not work. The process is still running
Comment 1 Eray Aslan gentoo-dev 2013-01-20 15:34:10 UTC
Anything funny when you run squid -X -k shutdown on your console?

Also please check your cache_effective_user directive in squid.conf and check which user id your Squid process is running under.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2013-01-23 20:00:55 UTC
(In reply to comment #1)
> Anything funny when you run squid -X -k shutdown on your console?
> 
> Also please check your cache_effective_user directive in squid.conf and
> check which user id your Squid process is running under.

When running -X -k shutdown I get this

...
2013/01/23 21:59:49.514| Setting CA certificate locations.
2013/01/23 21:59:49.514| Not requiring any client certificates
2013/01/23 21:59:49.514| leave_suid: PID 16106 called
2013/01/23 21:59:49.514| leave_suid: PID 16106 giving up root, becoming 'nobody'
2013/01/23 21:59:49.514| command-line -X overrides: ALL,1
squid: ERROR: Could not send signal 15 to process 2489: (1) Operation not permitted

cache_effective_user is set to "nobody" and squid is running as root (using the init script)
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2013-01-27 14:45:47 UTC
Fixed by swithing the cache_effective_user from "nobody" to "squid". It should have been a permission problem on my side.