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 t
Public bug reported:
It would be nice to have a hook that is executed once on install /
uninstall ( and possibly upgrade ) and that is guaranteed to run before
any daemons are launched. This would allow for configs, databases, etc
to be properly configured for daemons that require it. I'm curren