Re: [systemd-devel] [PATCH] Add support for supplying an exit status code to "systemctl exit"

2014-11-06 Thread Lennart Poettering
On Thu, 06.11.14 18:09, Vito Caputo (vito.cap...@coreos.com) wrote: > > +r = sd_bus_message_read(message, "i", &m->exit_retval); > +if (r < 0) > +return r; > + > m->exit_code = MANAGER_EXIT; > > return sd_bus_reply_method_return(message, NULL); >

Re: [systemd-devel] [PATCH] Add support for supplying an exit status code to "systemctl exit"

2014-11-06 Thread Lennart Poettering
On Thu, 06.11.14 18:09, Vito Caputo (vito.cap...@coreos.com) wrote: > The capability of directly propagating a return code out to the caller of > systemd --user from within something like an OnFailure unit has utility. > > This also contains a minor fixup to the documentation adding "exit" to the

[systemd-devel] [PATCH] Add support for supplying an exit status code to "systemctl exit"

2014-11-06 Thread Vito Caputo
The capability of directly propagating a return code out to the caller of systemd --user from within something like an OnFailure unit has utility. This also contains a minor fixup to the documentation adding "exit" to the --force section. Cheers, Vito Caputo --- man/systemctl.xml | 11 +