From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A0C4138334 for ; Thu, 2 Aug 2018 12:06:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1A59E083D; Thu, 2 Aug 2018 12:06:00 +0000 (UTC) Received: from edrik.securmail.fr (edrik.securmail.fr [IPv6:2a00:5884:101:55::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E47EEE07F6 for ; Thu, 2 Aug 2018 12:05:58 +0000 (UTC) Received: by edrik.securmail.fr (Postfix, from userid 58) id 4E281B0D4C; Thu, 2 Aug 2018 14:05:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=swordarmor.fr; s=swordarmor; t=1533211554; bh=WWOO+/xwPsyqgNXKvcxwiZP61hYd6aeN6fe+N5v5BbU=; h=Date:From:To:Subject:References:In-Reply-To; b=JUmeE4ThhLY0659ntFPtugMsaK0FRB2fQ6IB5/OR2+ScpALyaBpbA0imjvLFjn73C R+44fCaD3qV9lzAbcfrGWNk+/KYRQ+tHOHTB4xXuVT1xwfcEVdFUMYziOpkJx5hyHq 3v0rcJXAC0QZULTG8NIA3T4gcYPkTnbJtciJ/RCY= X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on edrik.securmail.fr X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham autolearn_force=no version=3.4.1 Received: from mew.swordarmor.fr (mew.swordarmor.fr [IPv6:2a00:5884:102:1::4]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: alarig@swordarmor.fr) by edrik.securmail.fr (Postfix) with ESMTPSA id 513D5B0D41 for ; Thu, 2 Aug 2018 14:05:52 +0200 (CEST) Authentication-Results: edrik.securmail.fr/513D5B0D41; dmarc=none (p=none dis=none) header.from=swordarmor.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=swordarmor.fr; s=swordarmor; t=1533211552; bh=WWOO+/xwPsyqgNXKvcxwiZP61hYd6aeN6fe+N5v5BbU=; h=Date:From:To:Subject:References:In-Reply-To; b=RSXRs0R+Bl1y+KWDCUx7V+B+A+YRFuEuPYq9DnD6prZrwhKseq6FBUTGheRDzIQgZ Zuyo3uWwyv0xhEs2A+dKktXICZnXRyzhibyae3BvJLRKdTJ32PLLUTSqdKf2T31KqQ UFoED9BAfkdSAUMXPY+UUEybsomcwaJr5Hu7w1YA= Date: Thu, 2 Aug 2018 14:05:51 +0200 From: Alarig Le Lay To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] How does OpenRC know if a service is crashed? Message-ID: <20180802120551.inh4yhophws34isc@mew.swordarmor.fr> References: <20180802093223.3bjnp57czg7l2tf7@mew.swordarmor.fr> <6872387.OOkRybvtOo@osiris> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6872387.OOkRybvtOo@osiris> User-Agent: NeoMutt/20180716 X-Archives-Salt: 51f062d8-cb86-4ce5-92ba-78c1e063b488 X-Archives-Hash: 2cd9d1aa2f0269ead0ac3ec9aab41848 Hi Manuel On jeu. 2 août 12:30:16 2018, Manuel Mommertz wrote: > Hey Alarig, > > I suggest to read the man-page of start-stop-daemon to get an detailed idea of > how it works. > > You use '--name paste-py' which tells start-stop-daemon to look for a process > named 'paste-py' to see if it is still running, when you request the status. > As your shell-script runs daemonize.py as the last step and then quits itself, > there is no process with the name 'paste-py' and therefore the reported status > is 'crashed'. > Use '--pidfile /opt/paste-py/paste.pid' instead. With this, the status is > determined by reading the pid from the file and then looking if this pid is > still running. Thanks a lot it’s now displayed as running :) bulbizarre ~ # rc-status | grep paste paste-py [ started ] -- alarig