From owner-freebsd-questions Wed Dec 29 1:37:17 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mercurio.ie-online.it (dns.ie-online.it [194.133.148.8]) by hub.freebsd.org (Postfix) with ESMTP id C8CB914C06 for ; Wed, 29 Dec 1999 01:37:13 -0800 (PST) (envelope-from sriva@alice.it) Received: from attila.ie-interna.it (host1.ie-online.it [194.133.148.10]) by mercurio.ie-online.it (8.9.3/8.9.3) with ESMTP id KAA35190; Wed, 29 Dec 1999 10:37:11 +0100 (CET) (envelope-from sriva@alice.it) Received: from stefano (stefano.ie-interna.it [192.168.0.33]) by attila.ie-interna.it (8.9.3/8.9.3) with SMTP id KAA95522; Wed, 29 Dec 1999 10:37:10 +0100 (CET) (envelope-from sriva@alice.it) Message-Id: <3.0.5.32.19991229103734.00a376c0@relay.alice.it> X-Sender: riva@relay.alice.it X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 29 Dec 1999 10:37:34 +0100 To: "Duke Normandin" <01031149@3web.net> From: Stefano Riva Subject: Re: kill -HUP 1 Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <001901bf51c7$338ec6c0$3d9ec5d1@webserver> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 22.24 28/12/99 -0800, you wrote: >I can't seem to get kill -HUP 1 to work.....nothing happens - no error >messages, nothing. I can't figure out what I'm doing wrong. So I have >been doing: >kill 1 -l >It logs out of csh and asks me for the complete path to my shell or >return for sh. I press "return"...I get a sh prompt, then I do "exit". >Then and only then is the system re-initialized. I have no idea what I'm >doing....but it beats re-booting. You're sending a TERM signal (kill's default) to PID 1. The "-1" argument must be placed before PID(s); if you place it after, either it is ignored or taken as a special broadcast PID, where if you're root the signal go to every process running, if you're a standard user the signal go to all your processes. The result is going single-user; when you exit single-user mode, you return in multi-user mode. If this is what you want, consider using "shutdown now" instead of killing init. Sending HUP to init simply causes it to rescan /etc/ttys, so don't expect an error (?). Next time try "man kill". :-) --- Stefano Riva Systems & Network Administrator Informazioni Editoriali I.E. Srl Voice +39-02283151, Fax +39-0228315900 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message