From owner-freebsd-questions Wed Dec 29 10: 3: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 7069015201 for ; Wed, 29 Dec 1999 10:02:49 -0800 (PST) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=ben) by scientia.demon.co.uk with smtp (Exim 3.092 #1) id 123K0U-000DME-00; Wed, 29 Dec 1999 14:23:18 +0000 Date: Wed, 29 Dec 1999 14:23:17 +0000 From: Ben Smithurst To: Duke Normandin <01031149@3web.net> Cc: freebsd-questions Subject: Re: kill -HUP 1 Message-ID: <19991229142317.A49613@strontium.scientia.demon.co.uk> References: <001901bf51c7$338ec6c0$3d9ec5d1@webserver> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <001901bf51c7$338ec6c0$3d9ec5d1@webserver> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Duke Normandin wrote: > I can't seem to get kill -HUP 1 to work.....nothing happens - no error > messages, nothing. What do you expect to happen? All SIGHUP does to init is cause it to reload /etc/ttys. If you haven't changed /etc/ttys, the behaviour your are seeing (i.e. nothing) is quite correct. > 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. That command tries to send SIGTERM to init, which is documented as dropping the system down to single user mode - precisely what you are seeing. It would also attempt to send SIGTERM to the process "-l", which is not a legal PID (whether it will try this or not I don't know - init may have killed the kill process before it gets that far). -- Ben Smithurst | PGP: 0x99392F7D ben@scientia.demon.co.uk | key available from keyservers and | ben+pgp@scientia.demon.co.uk To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message