LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxQuestions.org Member Intro (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/)
-   -   How to start squid command when computer start fedora (https://www.linuxquestions.org/questions/linuxquestions-org-member-intro-24/how-to-start-squid-command-when-computer-start-fedora-757683/)

rajunetha 09-25-2009 04:28 AM

How to start squid command when computer start fedora
 
Hello

every one

This is Raju Netha form Hyderabad

can your help me on this /etc/rc.d/init.d/squid start command when computer start fedora

Regards-

Rajunetha

Disillusionist 09-25-2009 05:05 AM

I take it that squid is not starting when the machine boots currently?

You need to know what your default runlevel is, you can find this out by typing:
Code:

runlevel
from the command prompt, run man runlevel for more details.

Assuming that your default runlevel is 3 and that you have a /etc/rc3.d folder.

(as root):
Code:

ln -s /etc/rc.d/init.d/squid /etc/rc3.d/S99squid

rajunetha 09-28-2009 11:44 PM

My default runlevel is N 5.

[root@localhost ~]# runlevel
N 5
[root@localhost ~]#
After booting I am giving command using Terminal

[root@localhost ~]#/etc/rc.d/init.d/squid start

it is starting.

Disillusionist 09-29-2009 02:12 PM

What is the output from:

Code:

find /etc -type d -name rc5.d
And additionally:

Code:

find /etc -type f -name '*squid*'

rajunetha 10-01-2009 12:06 AM

i did not get you

my terminal default prompt is

[root@localhost ~]#

rajunetha 10-01-2009 12:08 AM

form there i am typing this command line

/etc/rc.d/init.d/squid start

Disillusionist 10-01-2009 12:48 AM

Yes, I understand that.

Generally, the system startup scripts are in a sub folder of /etc

There would be a folder for each run level ( rc1.d rc2.d rc3.d etcetera)

What I was trying to find out from the find commands I asked you to perform, was "Where is your rc5.d folder located?" and "Do you have an automated startup file for squid at any run level?"

Please can you run the commands and let me know the results.


All times are GMT -5. The time now is 06:39 AM.