*BSD News Article 37134


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!hookup!news.moneng.mei.com!howland.reston.ans.net!swiss.ans.net!news.dfn.de!gs.dfn.de!fauern!uni-regensburg.de!rrzc1a!c9020
From: c9020@rrzc1a (Hubert Feyrer)
Newsgroups: comp.unix.bsd
Subject: Re: sending "inetd" a hangup signal
Date: 11 Oct 1994 08:19:00 GMT
Organization: University of Regensburg, Germany
Lines: 25
Message-ID: <37dhpkINNsr9@rrzs3.uni-regensburg.de>
References: <37d267$bpb@lastactionhero.rs.itd.umich.edu>
Reply-To: hubert.feyrer@rz.uni-regensburg.de
NNTP-Posting-Host: rrzc1.rz.uni-regensburg.de
X-Newsreader: TIN [version 1.2 PL0]

> kill -1 120 (does nothing)
> kill  1 120 (system halt -swithced to single user mode)
>
> According to the man's I should  be able to comment out a service
> in the conf file then send a hangup signal which should disable
> the commented out service.  So far no luck.

And appearing to probably any man-page, it's "kill [-signal] pid".

The first example you gave should work, if it doesn't, try a normal
reboot instead (for lack of better solution ;-). This should also
restart inetd. :)

In the second example, you send SIGTERMs to pids 1 and 120, and with
pid 1 being init, you get it to shut down the system.


Hubert

--
=============== Hubert Feyrer ============================================
      Weekdays: Rennerstr. 19, D-93053 Regensburg,  Tel. 0941/701788
      Weekends: Bachstr. 40,   D-84066 Mallersdorf, Tel. 08772/6084
      Internet: hubert.feyrer@rz.uni-regensburg.de == IRC: hubertf
==========================================================================