Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 1999 14:23:17 +0000
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Duke Normandin <01031149@3web.net>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: kill -HUP 1
Message-ID:  <19991229142317.A49613@strontium.scientia.demon.co.uk>
In-Reply-To: <001901bf51c7$338ec6c0$3d9ec5d1@webserver>
References:  <001901bf51c7$338ec6c0$3d9ec5d1@webserver>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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