From owner-freebsd-questions Fri Apr 12 1:37:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web13305.mail.yahoo.com (web13305.mail.yahoo.com [216.136.175.41]) by hub.freebsd.org (Postfix) with SMTP id E197037B416 for ; Fri, 12 Apr 2002 01:37:08 -0700 (PDT) Message-ID: <20020412083708.80596.qmail@web13305.mail.yahoo.com> Received: from [193.174.9.99] by web13305.mail.yahoo.com via HTTP; Fri, 12 Apr 2002 10:37:08 CEST Date: Fri, 12 Apr 2002 10:37:08 +0200 (CEST) From: =?iso-8859-1?q?m=20p?= Subject: Re: S/Key - this is embarrasing. To: Patrick O'Reilly , John Mills , John Mills Cc: FreeBSD-questions MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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