On Thu, 26 Jul 2001, Iain Conochie wrote:
> I am in the process of building a mail server for a redhat 6.2 box. I have
> added an ssh rpm, but it did not come with any init script. I have it
> kicking up in /etc/rc.d/rc.local, but this seems to hang the network
> reload script.

Curiouser and curiouser. Off the top of me head, I don't see why that
should happen. ssh should bind to a particular port (22) on a "wildcard"
interface by default, not that it matters particularly.

> I am more used to BSD style init - so if I make the ssh
> script and put it in /etc/inittab, what symlinks do I have to make in the
> rc?.d directories and how do these relate to the network script?

I think you want to put it in /etc/rc.d/init.d/ rather than inittab. Then
you can either do the symlinks manually:
  /etc/rc.d/rc0.d/> ln -s ../init.d/sshd K25sshd
  /etc/rc.d/rc1.d/> ln -s ../init.d/sshd K25sshd
  /etc/rc.d/rc2.d/> ln -s ../init.d/sshd S55sshd
  /etc/rc.d/rc3.d/> ln -s ../init.d/sshd S55sshd
  /etc/rc.d/rc4.d/> ln -s ../init.d/sshd S55sshd
  /etc/rc.d/rc5.d/> ln -s ../init.d/sshd S55sshd
  /etc/rc.d/rc6.d/> ln -s ../init.d/sshd K25sshd

or do "chkconfig --add sshd" or "config sshd on" or something like that.

If you've not got a "/etc/rc.d/init.d/sshd" file, I can send you the one
I've got here (a standard RH7.0 one).

> I will fully admit that i am being _very_ lazy, and I should probably
> RTFM, but as this has to be up today any help will be well recieved.

Have fun, (but I suspect this wont solve you problem)

HTH

Paul.

------------------------------------------------------------------------------
Paul Millar                            yo-yo, n. :
Particle Physics Theory Group              Something that is occasionally
Department of Physics and Astronomy        up but normally down.
University of Glasgow,                     (see also Computer)
Glasgow G12 8QQ,                                       [EMAIL PROTECTED]
Scotland                                               +44 (0)141 330 4717
------------------------------------------------------------------------------

--------------------------------------------------------------------
http://www.lug.org.uk                   http://www.linuxportal.co.uk
http://www.linuxjob.co.uk               http://www.linuxshop.co.uk
--------------------------------------------------------------------

Reply via email to