Comment 1 for bug 1661126

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1661126] [NEW] Add One-shot Install/Uninstall Hook

Yes, I've run into this challenge making snaps too.

The only question in my mind, though, is whether you don't actually want
to run a sanity check of config etc on every launch, anyway, to deal
with cases of corruption. What I did was sanity check config and restore
if needed (or recreate from a template) when the daemon is being
launched. That would slow down launch slightly but provide a very high
level of certainty on every launch.

Mark