Issue with oneshot daemon

Jamie Strandboge jamie at canonical.com
Mon Feb 6 19:23:05 UTC 2017


On Mon, 2017-02-06 at 14:04 -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...
> 

You are right, snapd should handle this properly but at the moment it doesn't.
This is this bug:
https://bugs.launchpad.net/snappy/+bug/1647169

Perhaps Jamie Bennett or someone from the Snappy team could comment on its
status?

-- 
Jamie Strandboge             | http://www.canonical.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170206/f2e6c296/attachment.sig>


More information about the Snapcraft mailing list