Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: UNSURE 0.264 X-Spam-Level: ** X-Spam-Evidence: '*H*': 0.57; '*S*': 0.09; 'fork': 0.16; 'subject:skip:m 10': 0.16; 'subject:python': 0.16; 'trying': 0.19; 'normally': 0.19; 'header:User-Agent:1': 0.23; 'script.': 0.24; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'terminate': 0.31; 'figure': 0.32; 'subject: (': 0.35; 'subject:with': 0.35; 'belong': 0.36; 'server': 0.38; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'pardon': 0.84; 'received:195.238': 0.84; 'received:195.238.6': 0.84; 'received:belgacom.be': 0.84; 'received:isp.belgacom.be': 0.84; 'edwards': 0.91 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQBAB6MalNtgGso/2dsb2JhbAANTYcUvyeDEQGBMoMaAQEEI1URCxoCBRYLAgIJAwIBAgFFEwgCiEKpZnefUIVnF4EqjS8Wgl6BSwEDmTeWMQ Date: Wed, 07 May 2014 21:45:28 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: python-daemon interaction with multiprocessing (secure-smtpd) References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 07 May 2014 23:14:35 +0200 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1399497276 news.xs4all.nl 2862 [2001:888:2000:d::a6]:48989 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:71053 op 07-05-14 21:11, Grant Edwards schreef: > > Mainly, I'm just trying to figure out the right way to terminate the > server from an /etc/init script. > As far as I understand you have to make sure that your daemon is a proces group leader. All the children it will fork will then belong to its proces group. You can then normally kill all process with pkill -g ... -- Antoon Pardon