You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by prashantkumar dhotre <pr...@gmail.com> on 2019/03/04 11:48:58 UTC

what does it mean to have exit-code of 251

Hi,

In my journal log, I see ;

1199473 Mar 01 15:46:03 evo-qfx-01 systemd[1]: ifmand.service: Main process
exited, code=exited, status=251/n/a

In my app, I don't explicitly call exit(251).
I use zookeeper lib.
Fro my logs,I see that after a call to zookeeper lib API zookeeper_close()
, I see that my service exited with 251.
Is 251 a std exit code or app/lib specific custom exit code ?
I want to know what does 251 means.

Can you  please  let me know where can I see the exit-code to meaning mapping
?

Thanks

Prashant

Re: what does it mean to have exit-code of 251

Posted by Norbert Kalmar <nk...@cloudera.com.INVALID>.
Hi Prashant,

Depending on your version, exit codes are static variables in ExitCode.java
But we do not use 251, we only go as far as 14 with exit codes. This looks
like an app specific exit code.
Are you using some kind of systemd script to start ZooKeeper?

Regards,
Norbert

On Mon, Mar 4, 2019 at 12:49 PM prashantkumar dhotre <
prashantkumardhotre@gmail.com> wrote:

> Hi,
>
> In my journal log, I see ;
>
> 1199473 Mar 01 15:46:03 evo-qfx-01 systemd[1]: ifmand.service: Main process
> exited, code=exited, status=251/n/a
>
> In my app, I don't explicitly call exit(251).
> I use zookeeper lib.
> Fro my logs,I see that after a call to zookeeper lib API zookeeper_close()
> , I see that my service exited with 251.
> Is 251 a std exit code or app/lib specific custom exit code ?
> I want to know what does 251 means.
>
> Can you  please  let me know where can I see the exit-code to meaning
> mapping
> ?
>
> Thanks
>
> Prashant
>