Daniel Beck
added a comment - 2017-09-22 09:23 exit normally when restarted
This makes no sense. I mean, if you set up your system to restart automatically when exiting, sure, but think of how this would need to be documented.
This should have some priority since the /exit URL command is not working.
If this is about JENKINS-34254 , it'd be much better to just fix that rather than hack around it.
Meanwhile, you could use the CLI command shutdown to get the same result as /exit if it worked.

Alon Bar-Lev
added a comment - 2017-09-22 11:44 Hi,
> This makes no sense. I mean, if you set up your system to restart automatically when exiting, sure, but think of how this would need to be documented.
The documentation simply state:
-DEXIT_ON_RESTART= true - exit jenkins when restarted instead of re-executing the process.
Another alternative, which is actually the current hack I use:
-DRESTART_PROGRAM=program - execute this program when restarting, default is argv[0] of jenkins process.
This will enable setting the program to be /bin/true to achieve the same effect.
> If this is about JENKINS-34254 ,
No it is not, because all the restart features of jenkins (for example post upgrade or plugin update) will not be available also when this issue is fixed.
This bug should be solved regardless to rescue a jenkins that is at the stage of restart with some failure.
Does it makes more sense now?
Thanks!