Issue with oneshot daemon

MikeB mabnhdev at gmail.com
Mon Feb 6 19:04:58 UTC 2017


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

Thanks, Mike




More information about the Snapcraft mailing list