Issue with oneshot daemon

Sergio Schvezov sergio.schvezov at canonical.com
Mon Feb 6 19:10:28 UTC 2017


On Mon, 6 Feb 2017 14:04:58 -0500, MikeB wrote:
> In my snapcraft.yaml, I define a oneshot daemon.
>
>
>   opx-init:
>     command: usr/bin/opx-init
>     daemon: oneshot
>
> When I install the snap on Ubuntu-Core, I see the following in the syslog...
>
> Feb  6 18:46:49 localhost systemd[1]:
> snap.openswitch-x870.opx-init.service: Service has Restart= setting
> other than no, which isn't allowed for Type=oneshot services.
> Refusing.
>
> Can anyone explain what is going wrong?  I expect Snapcraft/Snapd to
> handle the systemd interactions behind the scenes...

Sorry for the inconvenience, this seems to be a snapd bug, mind logging it here: https://bugs.launchpad.net/snapd/+filebug


-- 
Sent using Dekko from my Ubuntu device




More information about the Snapcraft mailing list