Comment 10 for bug 1803212

Revision history for this message
Alberto Mardegan (mardy) wrote (last edit ):

You are right, Tony, we implemented the proposal from the forum -- AFAIK the only feedback we received was from other team members, so this is probably the reason why the decision on which solution to follow was taken internally. There is always room for changes, but we need to be careful on how such changes might impact snaps relying on the current behaviour.

The output from "snap tasks" is indeed misleading -- unless we change the actual behaviour, I'd suggest the output to be changed to something like

    Run service command "restart" on currently running services of snap "edgexfoundry"

Ideally we would also print the actual service names, but if that is too cumbersome we could go for this as an immediate solution (I've yet to investigate how hard that is).

But regarding your concrete problem: would it be possible for you to run the "snap restart" command on the individual service(s)? Because, if a service name is given (vs a snap name), then "snap restart" should restart the service regardless of its current status.