Update Snappy restart strategy

Bug #1577831 reported by Sylvain Pineau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Next Generation Checkbox (CLI)
Fix Released
High
Sylvain Pineau
PlainBox (Toolkit)
Fix Released
High
Sylvain Pineau

Bug Description

The snappy restart strategy was built on top of checkbox-cli2 and is expecting each snap to have a special checkbox-autostart file calling checkbox-cli2.
Now checkbox-cli does offer the same feature since its full rewrite (to use session assistant).

Updates required:

1. It's time to kill checkbox-cli2 and only require snap wanting to restart session on snappy automatically on boot to just have a checkbox bin using checkbox-cli.

2. I've checked the plainbox strategy code and it needs to be updated since

        self.config.set('Service', 'ExecStart',
                        '/apps/bin/{}.checkbox-autostart --resume {}'.format(

should be

        self.config.set('Service', 'ExecStart',
                        '/snap/bin/{}.checkbox-autostart --resume {}'.format(

on series 16

Related branches

Changed in checkbox-ng:
status: New → In Progress
Changed in plainbox:
status: New → In Progress
Changed in checkbox-ng:
importance: Undecided → High
Changed in plainbox:
importance: Undecided → High
Changed in checkbox-ng:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
Changed in plainbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
milestone: none → 0.28
Changed in checkbox-ng:
milestone: none → 0.26
Changed in checkbox-ng:
status: In Progress → Fix Committed
Changed in plainbox:
status: In Progress → Fix Committed
Pierre Equoy (pieq)
Changed in plainbox:
status: Fix Committed → Fix Released
Changed in checkbox-ng:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.