Re: Re: REVIEW: System Initialization

[email protected]
Newsgroups gmane.linux.lsb.discuss
Message-ID <[email protected]>
On Tue, 17 Jun 2003, Tobias Burnus wrote:

> Hi,
>
> a) [PATCH]
> This patch does
> - Change "program is stopped" to "program is not running"
>   for the "status" exit status codes in order to reduce possible
>   confusion with "SIGSTOP"
>
> - Change the exit status code for "killproc" for the case that the
>   program is not running:
>   "0"     if no signal is given (= TERM, wait, KILL; this is default use
>           for "stop" and matches the exit code for "stop")
>   "not 0" ("7"=program is not running) if a signal (such as HUP) is given
>
>
>
> b) Other things that should (probably) be added, but I didn't:
>
> - PID format: If multiple PIDs exists, they should be space separated
>   in the PID file. (And this should be also the format used by
>   pidofproc.)
>
> - killproc should remove the PID file it the program is no longer running.
>   (This happens with signal KILL, send by default if TERM didn't work.)
>   A bit clean-up is not bad, especially if the program cannot do anything
>   about.
>
>
> Tobias

I've applied this patch, and will be posting a new WIP document shortly.



                                Stuart

[email protected]                             Free Standards Group
Lead Developer, Written Specification                  Linux Standard Base
1024D/37A79149:                                        0791 D3B8 9A4C 2CDC A31F
                                                       BD03 0A62 E534 37A7 9149
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.