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
1=== modified file 'plainbox/docs/manpages/plainbox-job-units.rst'
2--- plainbox/docs/manpages/plainbox-job-units.rst 2015-01-29 12:35:39 +0000
3+++ plainbox/docs/manpages/plainbox-job-units.rst 2015-02-09 14:15:00 +0000
4@@ -145,6 +145,7 @@
5 passes or fails. The question should be phrased in such a way
6 that an answer of **Yes** means the test passed, and an answer of
7 **No** means it failed.
8+
9 .. warning::
10 since version 0.17 fields: purpose, steps and verification should be used
11 instead of description.
12@@ -218,6 +219,30 @@
13 expected to run for, as a positive float value indicating
14 the estimated job duration in seconds.
15
16+``flags``:
17+ (optional) This fields contains list of flags separated by spaces or
18+ commas that might induce plainbox to run the job in particular way.
19+ Currently, following flags are inspected by plainbox:
20+
21+ ``preserve-locale``:
22+ This flag makes plainbox carry locale settings to the job's command. If
23+ this flag is not set, plainbox will neuter locale settings. Attach
24+ this flag to all job definitions with commands that use translations .
25+
26+ ``win32``:
27+ This flag makes plainbox run jobs' commands in windows-specific manner.
28+ Attach this flag to jobs that are run on Windows OS.
29+
30+ ``noreturn``:
31+ This flag makes plainbox suspend execution after job's command is run.
32+ This prevents scenario where plainbox continued to operate (writing
33+ session data to disk and so on), while other process kills it (leaving
34+ plainbox session in unwanted/undefined state).
35+ Attach this flag to jobs that cause killing of plainbox process during
36+ their operation. E.g. run shutdown, reboot, etc.
37+
38+ Additional flags may be present in job definition; they are ignored.
39+
40 ===========================
41 Extension of the job format
42 ===========================

Subscribers

People subscribed via source and target branches