request: snap disable and enable (vs remove or install)

Bug #1500560 reported by Victor Mayoral
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
John Lenton

Bug Description

Hi everyone,

It'll be great if a snap (mainly its services), once installed could be enabled and/or disabled . A simple scenario where this would be useful:

"Imagine i've got two facial recognition algorithms abstracted as snaps the first one's size is 10 MB and the second one is 15 MB. I'd like to have both installed in my device and enable one or the other depending on the scenario (without access to the cloud) thereby i need them both installed but one disabled."

Any chance this gets into snappy at some point?
Many thanks,

Related branches

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1500560] [NEW] request: snap disable and enable (vs remove or install)

Yes, disabling them is an easy +1 :)

Revision history for this message
John Lenton (chipaca) wrote :

Victor, you can already disable the services from the command line via `snappy service disable mypackage`.

I've added a trello card to add enable/disable at the package level to the REST API, at https://trello.com/c/12Zusor4/262-add-enable-disable-actions-at-the-package-level

I think between these two things you should be unblocked, and we can add enable/disable to snappy command when we move it to the rest API; let me know if not.

Changed in snappy:
importance: Undecided → High
assignee: nobody → John Lenton (chipaca)
status: New → Triaged
John Lenton (chipaca)
Changed in snappy:
status: Triaged → In Progress
Revision history for this message
John Lenton (chipaca) wrote :

I'm using activate/deactivate instead of enable/disable for consistency with 'snappy set $pkg active=$version', and and to make it slightly less confusing with enable/disable, that is for services.

Changed in snappy:
status: In Progress → Fix Committed
Leo Arias (elopio)
Changed in snappy:
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.