Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Apr 2002 10:37:08 +0200 (CEST)
From:      =?iso-8859-1?q?m=20p?= <sumirati@yahoo.de>
To:        Patrick O'Reilly <bsd@perimeter.co.za>, John Mills <john.m.mills@alum.mit.edu>, John Mills <jmmills@telocity.com>
Cc:        FreeBSD-questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: S/Key - this is embarrasing.
Message-ID:  <20020412083708.80596.qmail@web13305.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,

Patrick O'Reilly wrote:
> 
> On Thu 11 Apr 02 21:52, John Mills wrote:
> > 
> > Hello, Patrick -
> > 
> > 
> > How do I see what
> > version is installed under FreeBSD?
> > 
> 
> Hmmm ...  I dunno - and man doesn't seem to tell me either

# Which version of sshd runs on a host
telnet hostname 22
# Which version of ssh i use to connect?
ssh -V

> 
> > > > Also, how do I restart 'inetd' in FreeBSD-4.5 without rebooting
> > > > the box?
> > > > 
> > > # kill -HUP `cat /var/run/inetd.pid`
> > > 
> > Ahh - silly me. I've been seduced by RH ]init' scripts. That was
> > actually one reason I wanted to spend some time with FreeBSD: its
> > reputation as more representative of 'mainstream' Unices.
> > 
> 
> I may be mistaken, but I'm not aware of other Unices that use this 
> convention ( kill SIGHUP /var/run/${procname}.pid ).  In fact there was 
> talk a while ago that FreeBSD might adopt the rc.d system as used by 
> Linux and others for a future release (5.0 perhaps?).  I'm not sure 
> what the latest status is on this.
> 

Have you ever looked into the rc.d scripts? 

They do nothing more than to look for something like "restart,start,stop" and
then do some action.
There are there for one purpose: to help the admin NOT to shoot himself in the
foot. If you are a novice, have not worked in a long time with _that_
particular daemon, are working under [preferred kind of]-pressure they do all
the proper action (beside of a running a process, killing it or sending a
SIGHUP/SIUSR1 (depending on your application) for you which you wanted to do.
But they are shell-scripts. Therefor all they do - you can do by hand.
(i.e. "apachectl graceful" looks for a file /var/run/apache.pid, if found it
sends a SIGUSR1 to this process, if not the scripts starts the apache - and
saves the processnumber into the file /var/run/apache.pid)

Just my EUR 0.02

Marc

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Sie brauchen mehr Speicher für Ihre E-Mails? - http://premiummail.yahoo.de

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020412083708.80596.qmail>