You are not logged in.

#1 2009-10-11 17:17:17

suplegolas
Member
Registered: 2009-10-11
Posts: 3

Make SSHd start late? [SOLVED]

How do I go about making SSHd start late, say after WPA_Supplicant? I have wpa_supplicant [options] written into the rc.local file, so it begins when the system boots, no matter what, but how do I go about making sure SSHd starts AFTER that? It always starts earlier in the boot cycle, meaning it fails to find a network connection and refuses connections until I restart the service.

I want it to start late so it starts AFTER wpa_supplicant, meaning that the comp will definately be connected to the wifi at that point, so SSHd will detect an internet connection and start up as usual? Ideas?

Thanks!

[SOVLED] That worked for me! Thanks alot!

Last edited by suplegolas (2009-10-11 18:34:17)

Offline

#2 2009-10-11 17:25:12

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Make SSHd start late? [SOLVED]

Stuff in /etc/rc.local runs after everything in the /etc/rc.conf so you'll have to add a line in for sshd before our other app in the rc.local or make a daemon out of the other app and have it run from the rc.conf before sshd in the array.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2009-10-11 18:16:58

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Make SSHd start late? [SOLVED]

I'd say do the first thing graysky said: remove ssh from DAEMONS and do
(sleep 10 && /etc/rc.d/sshd start &)
in your rc.local

Offline

Board footer

Powered by FluxBB