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.
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