On Mon, 19 Nov 2001, Etienne Charlier wrote:

> Wouldn't be better to comment the exit 0 in the scripts released by Jacques
> ?

I am not sure what "better" is comparing to.  I don't know that there is
consistency between distros with respect to commenting out sshd in
inetd.conf or not, so no particular approach to commenting lines in the
openssh.lrp package can work in all cases.

However, if a block like the following were included in the startup
script...

  if [ -n "`grep ^smtp /etc/inetd.conf`" ]; then 
    exit 0
  fi

then only inetd.conf would have to get changed to switch between modes.

Having offered this, I don't think that this is necessarily a good idea...
if someone wanted to turn off sshd, commenting it out in inetd.conf might
be a sensible thing to do, yet the approach above could prove even more
surprising than the current "edit-in-two-places" approach.  It is
important to maintain the principle of minimum surprise as much as
possible.

> In the current situation, we must edit something to make it work
> ( the script or the inetd.conf)
> if the default script has the exit 0 commented, it will work stand alone. If
> one
> wants inetd then she must edit 2 files (the script and inetd.conf) ??
> 
> 
> Regards
> Etienne
> PS:congratulation to all the persons making the leaf project what it is
> ( a greatly usefull piece of work)
> 
> ----- Original Message -----
> From: "Matthew Schalit" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, November 19, 2001 10:01 PM
> Subject: Re: [Leaf-user] Re: Weblet and SSHD
> 
> 
> > Sandro Minola wrote:
> > >
> > [snip]
> >
> > > If yes, the only thing you have to do is to comment it out again.
> > >
> > > Hope this helps
> >
> >
> > If you comment out the ssh line in inetd, be sure to
> > have a look at /etc/init.d/sshd because it often has
> > these lines in it, at the top:
> >
> >   echo "Sshd started vi inetd."
> >   exit 0
> >
> > You know this affects you if you see it and not
> > the sshd 'usage:' when you type:
> >
> >     svi sshd
> >
> > People need to remove at least the exit 0 to get the
> > script to run at boot and start sshd stand alone.  Then
> > issue the svi sshd start command.
> >
> > Regards,
> > Matthew
> >
> > _______________________________________________
> > Leaf-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/leaf-user
> >
> 
> 
> _______________________________________________
> Leaf-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> 

---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...2k
---------------------------------------------------------------------------


_______________________________________________
Leaf-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user

Reply via email to