Date: Thu, 28 Jan 2016 13:07:25 +0100 From: Willem Jan Withagen <wjw@digiware.nl> To: araujo@FreeBSD.org, Warren Block <wblock@wonkity.com> Cc: freebsd-hackers@freebsd.org, Allan Jude <allanjude@freebsd.org> Subject: Re: syslogd(8) with OOM Killer protection Message-ID: <56AA047D.8070807@digiware.nl> In-Reply-To: <CAOfEmZiONoiagWJmQpq8dzxpa1EX2LoqR%2BA7BpWnjCBH4Qxi7w@mail.gmail.com> References: <CAOfEmZgzL2Ldu53CeSsKcUe00H1VAukhEopSUmpUK0=XAhsD1A@mail.gmail.com> <56A86D91.3040709@freebsd.org> <alpine.BSF.2.20.1601270932220.30320@wonkity.com> <CAOfEmZiONoiagWJmQpq8dzxpa1EX2LoqR%2BA7BpWnjCBH4Qxi7w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 27-1-2016 17:40, Marcelo Araujo wrote: > On Jan 28, 2016 12:37 AM, "Warren Block" <wblock@wonkity.com> wrote: >> >> On Wed, 27 Jan 2016, Allan Jude wrote: >> >>> On 2016-01-27 01:21, Marcelo Araujo wrote: >>>> >>>> Hi guys, >>>> >>>> I would like to know your opinion about this REVIEW[1]. >>>> The basic idea is protect by default the syslogd(8) against been killed > by >>>> OOM with an option to disable the protection. >>>> >>>> Some people like the idea, other people would prefer something more > global >>>> where we can protect any daemon by the discretion of our choice. >>>> >>>> Thoughts? >>>> >>>> >>>> [1] https://reviews.freebsd.org/D4973 >>>> >>>> >>>> Best, >>>> >>> >>> I do like the idea of generalizing it, say via rc.subr >>> >>> So you can just do: >>> >>> someapp_protect=YES (and maybe syslogd has this enabled by default in >>> /etc/defaults/rc.conf) and it prefixes the start command with protect -i. >> >> >> Possibly simpler to provide a list in one setting than an individual > setting for each daemon. With ideas from other posters: >> >> oomprotect_daemons="crond syslogd" I would really NOT like that. I'm trying to keep settings per deamon together in a file in /etc/rc.conf.d/, and load configs from there. This makes daemon managment from external tools (puppet etc) a LOT easier. It can just copy a default file into /etc/rc.conf.d if it wants a daemon available on a server. Requiring a collection of damons in one config-options wil make that totally impossible. just my 2 cts., --WjW
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56AA047D.8070807>