From owner-freebsd-hackers@freebsd.org Sun Jan 31 14:06:20 2016 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 81AAFA73B35 for ; Sun, 31 Jan 2016 14:06:20 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from know-smtprelay-omd-3.server.virginmedia.net (know-smtprelay-omd-3.server.virginmedia.net [81.104.62.35]) by mx1.freebsd.org (Postfix) with ESMTP id E5E9E1754 for ; Sun, 31 Jan 2016 14:06:19 +0000 (UTC) (envelope-from j.deboynepollard-newsgroups@ntlworld.com) Received: from [192.168.1.100] ([86.10.211.13]) by know-smtprelay-3-imp with bizsmtp id Ce6B1s00V0HtmFq01e6Bmd; Sun, 31 Jan 2016 14:06:11 +0000 X-Originating-IP: [86.10.211.13] X-Spam: 1 X-Authority: v=2.1 cv=MtevkDue c=1 sm=1 tr=0 p=Vrr8EYJMX8BPIQ9r4wYKCl4JfKw=:19 a=SB7hr1IvJSWWr45F2gQiKw==:117 a=SB7hr1IvJSWWr45F2gQiKw==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=CMQ_oNYfAAAA:8 a=jJvRZLfOAAAA:8 a=XxBdQHoZAAAA:8 a=XgoGgaRg1vXBoTbGU_0A:9 a=czzO_RvbwOveqGn9:21 a=yI8NpkVye7ehP01K:21 a=QEXdDO2ut3YA:10 a=z1OFvQ39S9YA:10 a=uoapEWrCiCEA:10 a=V_YoWeXle8YA:10 To: FreeBSD Hackers References: <9A913658-E90C-4B85-B73B-F3F7D3004344@panasas.com> From: Jonathan de Boyne Pollard Subject: Re: syslogd(8) with OOM Killer protection Message-ID: <56AE14CB.2030905@NTLWorld.com> Date: Sun, 31 Jan 2016 14:06:03 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <9A913658-E90C-4B85-B73B-F3F7D3004344@panasas.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Jan 2016 14:06:20 -0000 Jan Bramkamp: > I would prefer to implement [a] flag keeping cron (and all other > base system daemons) from double-forking and run it under a > process supervisor like daemontools. Ravi Pokala: > We've recently added that to `syslogd' (r279567, 2015-03-03). > I think we also have internal changes (not committed to -HEAD > yet) which adds a "run in foreground" option to a few other > daemons. As I've noted: * http://homepage.ntlworld.com./jonathan.deboynepollard/FGA/unix-daemon-design-mistakes-to-avoid.html#ForegroundDoesNotImplyDebugging This has been gradually going on for a decade, now. It's not something new that we're only just getting. Vixie cron (still determinedly "daemonizing" itself) is largely *not* representative of current practice, now. It's not even representative of crons in particular. GNU cron has a -f flag. Matt Dillon's dcron has a -f flag. Thibault Godouet's fcron has a -f flag. Bruce Guenter's bcron was designed from the start to be run under a service manager. * http://untroubled.org./bcron/bcron.html * http://www.jimpryor.net./linux/dcron.html * http://fcron.free.fr./ My thanks (and I suspect that of a lot of other people) to those who are and have been, program by program, enabling us to be rid of all of the unnecessary forking.