From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7486 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.linux.lib.musl.general Subject: Re: setenv if value=NULL, what say standard? Bug? Date: Thu, 23 Apr 2015 12:47:36 +0200 Message-ID: <5538CDC8.30600@skarnet.org> References: <553837F1.5080808@safe.ca> <55383E43.8010505@skarnet.org> <55384A61.5020001@safe.ca> <20150423021507.GG6817@brightrain.aerifal.cx> <5538740E.1030306@safe.ca> <5538BA11.90402@skarnet.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1429786071 11537 80.91.229.3 (23 Apr 2015 10:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Apr 2015 10:47:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7499-gllmg-musl=m.gmane.org@lists.openwall.com Thu Apr 23 12:47:51 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YlEfe-000146-6l for gllmg-musl@m.gmane.org; Thu, 23 Apr 2015 12:47:50 +0200 Original-Received: (qmail 9678 invoked by uid 550); 23 Apr 2015 10:47:48 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 9660 invoked from network); 23 Apr 2015 10:47:47 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:7486 Archived-At: On 23/04/2015 11:52, Raphael Cohn wrote: > The worst outage of my > career was a terracotta cluster that had suffered from a split brain. > Restarting it naively caused it to _delete_ the only remaining good > state. Is this your 'clean state' caveat above? Yes it is. I think scripts that start complex services should always make sure to check the state first. Ideally, a run script (as we name them in the process supervision world) should be idempotent in all cases. I realize it's not always easy to achieve, but I believe it is the goal to aim for. -- Laurent