From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Subject: Re: Install script supporting sysV init? Date: Tue, 28 Jan 2020 23:54:07 +0100 Message-ID: <20200128235407.7dd2949f@kompiuter> References: <20200126230211.1d700a9e@kompiuter> <20200126233820.02fa4cd3@scratchpost.org> <20200127170920.4ae3c415@kompiuter> <6539AA00-2F46-4115-A46D-661599AB837D@lepiller.eu> <20200128140655.26042789@kompiuter> <20200128155234.2ca6b419@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56088) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwZkY-0006mY-LK for guix-devel@gnu.org; Tue, 28 Jan 2020 17:54:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwZkX-0001iA-G1 for guix-devel@gnu.org; Tue, 28 Jan 2020 17:54:26 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.208]:43745) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwZkW-0001dH-U1 for guix-devel@gnu.org; Tue, 28 Jan 2020 17:54:25 -0500 In-Reply-To: <20200128155234.2ca6b419@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org On Tue, 28 Jan 2020 15:52:34 +0100 Danny Milosavljevic wrote: > Hi Jan, > > cool! > > Could you try what happens in the corner cases: > > (1) Try to start it twice. The second start attempt should fail and > $? should reflect that First and second start works the same. > (2) Try to stop it twice. I'm pretty sure > that should work (do nothing) the second time. What does sysv say > should happen? Should it error? The first stop takes way too long and throws an error: /etc/init.d/guix-daemon: line 47: kill: (9107) - Process not found >(3) Does status work? It throws: guix-daemon has a stale pid file > (4) Put a > nonsensical (non-existent) pid into the pid file and try to stop it. > Or start it. What does sysv say should happen? Should it clean up? > If the pid of the wrong process is in the pid file and one tries to > stop it or start it, what does sysv say should happen? Should one > check the args whether it's the correct program? Like what for example? I don't want to kill something important. > If these things are handled correctly, we can add it to guix master. > > BR, > Danny Jan Wielkiewicz