Merge lp:~kissiel/checkbox/job-unit-manpage-flags-update into lp:checkbox

Proposed by Maciej Kisielewski
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3568
Merged at revision: 3571
Proposed branch: lp:~kissiel/checkbox/job-unit-manpage-flags-update
Merge into: lp:checkbox
Diff against target: 42 lines (+25/-0)
1 file modified
plainbox/docs/manpages/plainbox-job-units.rst (+25/-0)
To merge this branch: bzr merge lp:~kissiel/checkbox/job-unit-manpage-flags-update
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+249035@code.launchpad.net

Description of the change

This MR adds information about 'preserve-locale', 'win32', and 'noreturn'
flags to job-units manpage.

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

For the record, I'd add a link to a bug (https://bugs.launchpad.net/plainbox/+bug/1403832) where the noreturn flag is required (just to help understanding why this type of flag exists in plainbox).

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This looks good but I'd like to tweak formatting a little:

http://paste.ubuntu.com/10142501/

(feel free to ignore the first, unrelated change that corrects a warning

3568. By Maciej Kisielewski

docs:plainbox-job-units: add info about flags to manpage

This patch adds information about 'preserve-locale', 'win32', and 'noreturn'
flags to job-units manpage.

Signed-off-by: Maciej Kisielewski <email address hidden>

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

> This looks good but I'd like to tweak formatting a little:
>
> http://paste.ubuntu.com/10142501/
>
> (feel free to ignore the first, unrelated change that corrects a warning

Applied your patch. Repushed.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'plainbox/docs/manpages/plainbox-job-units.rst'
--- plainbox/docs/manpages/plainbox-job-units.rst 2015-01-29 12:35:39 +0000
+++ plainbox/docs/manpages/plainbox-job-units.rst 2015-02-09 14:15:00 +0000
@@ -145,6 +145,7 @@
145 passes or fails. The question should be phrased in such a way145 passes or fails. The question should be phrased in such a way
146 that an answer of **Yes** means the test passed, and an answer of146 that an answer of **Yes** means the test passed, and an answer of
147 **No** means it failed.147 **No** means it failed.
148
148.. warning::149.. warning::
149 since version 0.17 fields: purpose, steps and verification should be used150 since version 0.17 fields: purpose, steps and verification should be used
150 instead of description.151 instead of description.
@@ -218,6 +219,30 @@
218 expected to run for, as a positive float value indicating219 expected to run for, as a positive float value indicating
219 the estimated job duration in seconds.220 the estimated job duration in seconds.
220221
222``flags``:
223 (optional) This fields contains list of flags separated by spaces or
224 commas that might induce plainbox to run the job in particular way.
225 Currently, following flags are inspected by plainbox:
226
227 ``preserve-locale``:
228 This flag makes plainbox carry locale settings to the job's command. If
229 this flag is not set, plainbox will neuter locale settings. Attach
230 this flag to all job definitions with commands that use translations .
231
232 ``win32``:
233 This flag makes plainbox run jobs' commands in windows-specific manner.
234 Attach this flag to jobs that are run on Windows OS.
235
236 ``noreturn``:
237 This flag makes plainbox suspend execution after job's command is run.
238 This prevents scenario where plainbox continued to operate (writing
239 session data to disk and so on), while other process kills it (leaving
240 plainbox session in unwanted/undefined state).
241 Attach this flag to jobs that cause killing of plainbox process during
242 their operation. E.g. run shutdown, reboot, etc.
243
244 Additional flags may be present in job definition; they are ignored.
245
221===========================246===========================
222Extension of the job format247Extension of the job format
223===========================248===========================

Subscribers

People subscribed via source and target branches