Merge lp://staging/~brendan-donegan/checkbox/plainbox_autostart into lp://staging/checkbox

Proposed by Brendan Donegan
Status: Merged
Approved by: Brendan Donegan
Approved revision: 2020
Merged at revision: 2040
Proposed branch: lp://staging/~brendan-donegan/checkbox/plainbox_autostart
Merge into: lp://staging/checkbox
Diff against target: 38 lines (+29/-0)
2 files modified
plainbox/plainbox/data/plainbox.conf (+19/-0)
plainbox/plainbox/data/plainbox.desktop (+10/-0)
To merge this branch: bzr merge lp://staging/~brendan-donegan/checkbox/plainbox_autostart
Reviewer Review Type Date Requested Status
Brendan Donegan (community) Approve
Zygmunt Krynicki (community) Needs Fixing
Review via email: mp+155502@code.staging.launchpad.net

Description of the change

This merge adds the necessary file for starting plainbox automatically when the system boots.

To post a comment you must log in.
2013. By Brendan Donegan

Add autostart file for plainbox.

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

+Exec=plainbox -w /usr/share/checkbox/data/whitelists/sru.whitelist

This is obviously not right

If this is about SRU run then we need to run:

$ plainbox sru $secure_id /tmp/fallback.xml

(I wonder how we get the $secure_id there )

If this is not about SRU run then I'd just add 'run' command and perhaps save that somewhere

review: Needs Fixing
2014. By Brendan Donegan

Rename plainbox-autostart.desktop to plainbox.desktop and change command to plainbox sru

2015. By Brendan Donegan

Rename upstart file to conf

2016. By Brendan Donegan

Merge from trunk

2017. By Brendan Donegan

Add submission file path to commands

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Hope everything looks good now!

review: Needs Resubmitting
2018. By Brendan Donegan

Add sudo to command in plainbox.desktop autostart file

2019. By Brendan Donegan

Remove variables RUN and USER from upstart job

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Better?

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

You need the pre-start script / end script section to mkdir /var/cache/plainbox

19 +script
20 + exec plainbox sru /var/cache/plainbox/submission.xml
21 +end script

There is no need to put this into a script section

if we're not passing the secure_id I'd like to put a keyword before the fallback file.

Please modify it to say --fallback=/var/cache/plainbox/submission.xml

32 +Exec=sudo plainbox sru /tmp/submission.xml

Likeweise

2020. By Brendan Donegan

Misc changes to upstart and autostart files to make things work better

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

It looks okay now. Let's change plainbox sru to accept keyword --fallback= argument and make $secure_id argument optional by using the config stuff I wrote in another branch.

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

Okay, let's get this show on the road

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches