Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Dec 1999 10:37:34 +0100
From:      Stefano Riva <sriva@alice.it>
To:        "Duke Normandin" <01031149@3web.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: kill -HUP 1
Message-ID:  <3.0.5.32.19991229103734.00a376c0@relay.alice.it>
In-Reply-To: <001901bf51c7$338ec6c0$3d9ec5d1@webserver>

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




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