1

In ubuntu 14.04, I have installed squid3, can start/stop it (working fine) via:

service squid3 start|stop

But i do not see any squid* file in /etc/init.d/ and /etc/rc.d/. How is that possible ? How service command is working and finding a service ?

Thanks, Michal

0

squid3 does not have any file in /etc/init.d/

Service startup script file for squid is in :

/etc/init/squid3.conf

Different programs use different ways of starting up.
Not every program that you can start stop is going to be in /etc/init.d/.

  • So - how can i control that script ? Where can i find it ? How service command is finding it ? Which directory is it searching ? I always believed "service" command was always looking only in /etc/init.d. If now what are the other dirs/files and how to control that ? – user2913139 Jan 23 '16 at 12:43
  • @user2913139 You have just been told where the file is. /etc/init/squid3.conf – Ken Sharp Jan 26 '16 at 5:21
  • @user2913139 i don't understand your question. you can control that script by using service command sudo service squid3 start|stop|restart what do you mean by control ? – Neil Jan 26 '16 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.