From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Subject: Re: Install script supporting sysV init? Date: Thu, 30 Jan 2020 15:11:58 +0100 Message-ID: <20200130151146.316939a7@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> <20200128235407.7dd2949f@kompiuter> <20200128235847.4951a202@scratchpost.org> <20200129000759.164e92cb@kompiuter> <20200129001913.606a6f4e@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]:59434) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixAYP-0002sk-0m for guix-devel@gnu.org; Thu, 30 Jan 2020 09:12:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixAYN-00087J-To for guix-devel@gnu.org; Thu, 30 Jan 2020 09:12:20 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.239]:53691) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ixAYN-00082q-A4 for guix-devel@gnu.org; Thu, 30 Jan 2020 09:12:19 -0500 In-Reply-To: <20200129001913.606a6f4e@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 I made some more tests and it turns out the start procedure doesn't work when ran manually - only the first time, the system boots, guix-daemon is started, but if stopped, then you can't turn it on again in the session. Also why in the stop procedure, we kill the process two times? kill "${pid}" sleep 10 kill -9 "${pid}" || true In my opinion after waiting for 10 seconds, there should be a conditional checking if the process still exists, to prevent throwing error. And one of the procedures restart or force-reload caused error, because it was empty, so I copied contents of one of these into another like this: restart) "$0" stop "$0" start ;; force-reload) "$0" stop "$0" start ;; Jan Wielkiewicz