<div dir="ltr">I've got a working classic snap on 16.04 that utilizes a oneshot systemd service for making sure my iptables and network bridge is persisted through reboots.<div><br></div><div>When attempting to get the same snap working on 14.04 I run into a snap install error:</div><div><br></div><div><pre>ubuntu@darthbawlz:~$ sudo snap install conjure-up --classic --edge
error: cannot perform the following tasks:
- Start snap "conjure-up" (34) services ([start snap.conjure-up.bridge.service] failed with exit status 1: Job for snap.conjure-up.bridge.service failed. See 'systemctl status snap.conjure-up.bridge.service' and 'journalctl -xn' for details.
)
ubuntu@darthbawlz:~$ systemctl status snap.conjure-up.bridge.service
snap.conjure-up.bridge.service
   Loaded: error (Reason: No such file or directory)
   Active: failed (Result: core-dump) since Tue 2017-01-24 13:52:32 UTC; 47s ago
 Main PID: 1548 (code=dumped, signal=SEGV)</pre><pre>This is on snapd 2.21 from trusty-proposed and my snapcraft repo is @ <a href="https://github.com/conjure-up/conjure-up-snap">https://github.com/conjure-up/conjure-up-snap</a></pre><pre>Is there something I need to be doing different to get those systemd scripts working on trusty?</pre><pre><br></pre><pre>Also a side note: We need more hooks for things like cleaning up iptables rules if I uninstall conjure-up. I know we want to keep snap building simple but deb packaging has maintainer scripts for this very reason. (<a href="https://bugs.launchpad.net/snappy/+bug/1611638">https://bugs.launchpad.net/snappy/+bug/1611638</a> but expanded to things like postrm etc)</pre></div></div>