Hi, I want to run a specific command when my snap refreshes if it is enabled, but when running “snapctl services my-snap.daemon” the output always says “disabled inactive”. When I run my snap with a shell and check the output of “snapctl services my-snap.daemon” I get the correct status. Is there something I am missing on how my snaps services are handled in the post-refresh stage?
Please see https://snapcraft.io/docs/supported-snap-hooks#heading--post-refresh
This hook is executed for the newly installed snap, before starting new services (if applicable).
Ah damn missed that, thank you!