Gentoo Archives: gentoo-user

From: Alarig Le Lay <alarig@××××××××××.fr>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] How does OpenRC know if a service is crashed?
Date: Thu, 02 Aug 2018 12:06:09
Message-Id: 20180802120551.inh4yhophws34isc@mew.swordarmor.fr
In Reply to: Re: [gentoo-user] How does OpenRC know if a service is crashed? by Manuel Mommertz <2kmm@gmx.de>
1 Hi Manuel
2
3 On jeu. 2 août 12:30:16 2018, Manuel Mommertz wrote:
4 > Hey Alarig,
5 >
6 > I suggest to read the man-page of start-stop-daemon to get an detailed idea of
7 > how it works.
8 >
9 > You use '--name paste-py' which tells start-stop-daemon to look for a process
10 > named 'paste-py' to see if it is still running, when you request the status.
11 > As your shell-script runs daemonize.py as the last step and then quits itself,
12 > there is no process with the name 'paste-py' and therefore the reported status
13 > is 'crashed'.
14 > Use '--pidfile /opt/paste-py/paste.pid' instead. With this, the status is
15 > determined by reading the pid from the file and then looking if this pid is
16 > still running.
17
18 Thanks a lot it’s now displayed as running :)
19 bulbizarre ~ # rc-status | grep paste
20 paste-py [ started ]
21
22 --
23 alarig