From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Install script supporting sysV init? Date: Tue, 28 Jan 2020 15:52:34 +0100 Message-ID: <20200128155234.2ca6b419@scratchpost.org> References: <20200126230211.1d700a9e@kompiuter> <20200126233820.02fa4cd3@scratchpost.org> <20200127170920.4ae3c415@kompiuter> <6539AA00-2F46-4115-A46D-661599AB837D@lepiller.eu> <20200128140655.26042789@kompiuter> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/KTQm3UY++._fXGLXPE/letj"; protocol="application/pgp-signature"; micalg=pgp-sha256 Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56081) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iwSEM-0008Tm-Iv for guix-devel@gnu.org; Tue, 28 Jan 2020 09:52:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iwSEL-0002Qs-Kw for guix-devel@gnu.org; Tue, 28 Jan 2020 09:52:42 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:48090) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iwSEL-0002P3-EZ for guix-devel@gnu.org; Tue, 28 Jan 2020 09:52:41 -0500 In-Reply-To: <20200128140655.26042789@kompiuter> 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: Jan Cc: guix-devel@gnu.org --Sig_/KTQm3UY++._fXGLXPE/letj Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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 $? sho= uld reflect that (2) Try to stop it twice. I'm pretty sure that should work (do nothing) th= e second time. What does sysv say should happen? Should it error? (3) Does status work? (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? If these things are handled correctly, we can add it to guix master. BR, Danny --Sig_/KTQm3UY++._fXGLXPE/letj Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl4wSrIACgkQ5xo1VCww uqVrygf/ddaJlqt+NCDBEOaiBKNOUveRdwTLd2JzL0nFVrvnm79hgTdH9MrTXGbC jlVItyuZX7/OjoWNBchhsa3RexYONvsw1KDsda+q55cY1Z+TOViITALBTxUVT+sV hCCCCq+WIUYMV2UpsfO+GdDASC+eug+iCLGSkuPxX+h+qS3OJnB2eEeiIvV+YgNh NwA0tM+xzvGSslDntBxcFKB3sY8+x1I+P+/u3fSUutSFe7CAxCbAndYpJXCx6Pe0 YCWyRMM36EUHHk1ckmmVF+GT1QQyed3BaK3uWqt17wQc8+5+FTouX3fsEJ9dle+W RqFKRidb5VZc4olBr79JJixcQiLq4Q== =hqJG -----END PGP SIGNATURE----- --Sig_/KTQm3UY++._fXGLXPE/letj--