Sorry what i meant to post look like the below one. But when i copy pasted the function name, i forget to change start to stop. "i have configured squid with ecap content adaptation(enable_ecap on) which in turn calls Adapter::Service::start() of libecap when squid starts. Similarly i want to call Adapter::Service::stop() of libecap when squid is terminating. Because i am using Adapter::Service::stop() of libecap to shutdown some services and free memory etc. But squid is shutting down directly. Is there any specific configuration directives which i can use in squid.conf to tell squid what all things it have to do before shutting down? (scenario is like below) i have written a simple code for generating a text file in both Adapter::Service::start() and Adapter::Service::stop(). The text file from service::start() is generating when squid loads.. but text file from Adapter::Service::stop() is not generated when squid shutdowns. Any suggestion is appreciated. Thanks in advance.." I have already checked it with Adapter::Service::retire() and service destructor of libecap(~Service()). both are not working. I have raised the same question in ecap forum. and the answer i got is like https://answers.launchpad.net/ecap/+question/249788 As i am not an expert in squid, i am not quite able to tackle this issue.. thats why i asked the same here as you fellows can help in the squid side -- View this message in context: http://squid-web-proxy-cache.1019090.n4.nabble.com/Terminating-a-service-ecap-content-adaptation-which-is-intiated-by-squid-at-time-of-squid-shutdown-tp4666230p4666261.html Sent from the Squid - Users mailing list archive at Nabble.com.