From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vincent Hanquez Subject: Re: [PATCH 1 of 3] xencommons: Kill xenstored when stopping xencommons Date: Mon, 28 Jun 2010 15:23:23 +0100 Message-ID: <4C28B05B.6040609@eu.citrix.com> References: <1277730769.31214.48.camel@zakaz.uk.xensource.com> <4C28A8DB.5060506@eu.citrix.com> <1277732921.31214.69.camel@zakaz.uk.xensource.com> <4C28AA00.4020209@eu.citrix.com> <1277733664.31214.88.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1277733664.31214.88.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: George Dunlap , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org > > Wow, it's like living in the future! > > Was the intention that users only ever use a "restart" target (assuming > it passes --restart) in the initscript rather than the stop->start pair > some people are used to? > > no, i think the intention was not using a database from the old boot when the system restarted. with the correct logic in the script, there's a way to make it default i think. > Even if stop does a clean shutdown unless start uses --restart we have > the same issue with forgetting watches etc. Do we need a separate > start-like target which reads the db (for use after you've done a stop) > or is it safe to use --restart by default? Can an initscript distinguish > a start at start of day from a start run by the user (following an > earlier stop) and hence add the --restart automagically? > You pinpointed the problem of why it's not on by default. I think i investigated using the absolute boot time (which i can't remember where it is in proc) and compare the database mtime, but I can't remember if it came to any conclusion. -- Vincent