LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to give highest priority to SSH service to run on boot (RHEL6 64 bit) (https://www.linuxquestions.org/questions/linux-server-73/how-to-give-highest-priority-to-ssh-service-to-run-on-boot-rhel6-64-bit-4175443740/)

ktjoe 01-01-2013 08:23 PM

How to give highest priority to SSH service to run on boot (RHEL6 64 bit)
 
Hi all,

May i ask a question, how to give SSH service highest priority to start on boot time on RHEL6 64 bit?

I want to be able to immediately SSH in to a linux server once it is restarted (dont mind to wait other services to start up).

Thanks in advance,

Kevin

alieblice 01-02-2013 03:59 AM

services in boot process start base on number that their link have in runlevel folder. you can change their number to lower number to change its starting order. but be careful to don't make it so lower that it starts before its dependency services like networking.
you can find those runlevel folders in one of these addressees :
"
The runlevel-specific scripts are stored in /etc/rc.d/rc?.d, /etc/init.d/rc?.d, /etc/rc?.d,
"
? is runlevel number.

btmiller 01-02-2013 10:27 PM

Note that you couldn't make ssh the very first service to start -- you'd need to wait at least until networking is up and running.

ktjoe 01-02-2013 10:40 PM

Thanks for your suggestion guys....
Some of your tips help to reduce the boot time...

I will keep looking for other ways to optimize the boot time more.


All times are GMT -5. The time now is 08:46 PM.