Hi Anikhil,
If you are talking about /etc/rc.d/init.d/sshd there should be a line
similar to this in the comments at the top:
# chkconfig: 345 55 45
1) The 345 indicate the run levels you want to start the script in.
2) The 55 is the start sequence as seen in your /etc/rc.d/rcx.d
directories. Where x is a number 0 - 6.
3) The 45 is the stop sequence in the same directories as above.
Note: Be sure that the start is after the network comes up and the stop
is before the network is brought down. Don't change the run level.
The 'no such file' problem can be a few things.
1) Be sure that the first line, with the pound sign, is:
#!/bin/sh
2) If you compiled SSH on your own then it is probably in /usr/local/sbin
and RedHat usually puts it in /usr/sbin. Change it in the script, DON'T
move sshd.
3) Is the script and sshd executable? if not make it executable with
chmod u+x filename
Good Luck, Carl
On 10-Jul-00 anikhil wrote:
> hi
> thanks for the script.i am using redhat linux 6.2.but i have problems
> with
> the script.first when i try to 'chkconfig --add sshd ' it says that
> service
> sshd does not support sshd.and then i run the script it says no such
> file or
> directory.and the files are in the same directory as is written in the
> script.do you have any clue.
> thanks
> nikhil
> ----- Original Message -----
> From: "Dave Dittrich" <[EMAIL PROTECTED]>
> To: "nikhil" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, July 10, 2000 5:15 AM
> Subject: Re: sshd on startup
>
>
>> On Sat, 8 Jul 2000, nikhil wrote:
>>
>> > how can i make sshd start during bootup.i tried to make a sym. link
>> > to
>> > /etc/rc.d/init.d but it says too many levels of sym. links.
>>
>> Sounds like you're using Linux, so try this script (make sure the path
>> is right, install it in /etc/rc.d/init.d, then run "chkconfig --add
>> sshd" if this is Red Hat Linux).
>>
>> --
>> Dave Dittrich Computing & Communications
>> [EMAIL PROTECTED] Client Services
>> http://staff.washington.edu/dittrich University of Washington
>>
>> PGP key http://staff.washington.edu/dittrich/pgpkey.txt
>> Fingerprint FE 97 0C 57 08 43 F3 EB 49 A1 0C D0 8E 0C D0 BE C8 38 CC
>> B5
>>
------------------------------------------------------------------------
E-Mail: Carl J. Nobile <[EMAIL PROTECTED]>
Date: 10-Jul-00 Phone: 315-453-2912 Ex. 5336
Time: 13:25:09 Fax: 315-479-0859
Software Engineering Group -- AppliedTheory Corp.
224 Harrison Street, 6th Floor, Syracuse, NY 13202
------------------------------------------------------------------------