<p dir="ltr">Done: <a href="https://bugs.launchpad.net/snappy/+bug/1643816">https://bugs.launchpad.net/snappy/+bug/1643816</a></p>
<p dir="ltr">I am not sure why snapd tries to have another layer of daemon configuration on top of systemd and not plain systemd template with snap variables.</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 22 Nov 2016 06:46, "Didier Roche" <<a href="mailto:didrocks@ubuntu.com">didrocks@ubuntu.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le 21/11/2016 à 23:54, Boris Rybalkin a écrit :<br>
> Hello,<br>
><br>
> I am porting uwsgi systemd config to snap and having some problem.<br>
> Snap installs correctly while systemd cannot start the service (some<br>
> other configuration issue). I think uwsgi will notify systemd that it<br>
> has started and looks like snap daemon does not support Type=notify.<br>
><br>
> Original config:<br>
> ---------------------<br>
> [Unit]<br>
> Description=uWSGI Internal<br>
> After=syslog.target<br>
><br>
> [Service]<br>
> ;User=platform<br>
> ExecStart={{ app_dir }}/uwsgi/bin/uwsgi --ini {{ config_root<br>
> }}/config/uwsgi/internal.ini<br>
> Restart=always<br>
> KillSignal=SIGQUIT<br>
> Type=notify<br>
> StandardError=syslog<br>
> NotifyAccess=all<br>
> Environment=LD_LIBRARY_PATH={{ app_dir }}/python/lib<br>
><br>
> [Install]<br>
> WantedBy=multi-user.target<br>
> ---------------------<br>
> Which is almost exact copy of the recommended config by uwsgi developers:<br>
> <a href="http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html" rel="noreferrer" target="_blank">http://uwsgi-docs.readthedocs.<wbr>io/en/latest/Systemd.html</a><br>
><br>
> This is snap version:<br>
> ---------------------<br>
>   uwsgi:<br>
>     command: uwsgi/bin/uwsgi --ini ${SNAP_COMMON}/config/uwsgi/<wbr>public.ini<br>
>     daemon: simple<br>
>     restart-condition: always<br>
>     plugs: [network, network-bind]<br>
> ---------------------<br>
><br>
> Snap way of defining systemd services seems very limited, is there a<br>
> way to provide systemd version of the config in snapd?<br>
<br>
Hey Boris,<br>
<br>
This has been discussed some moons ago and indeed, it's not supported as<br>
of today. Do you mind checking there is a bug for this in<br>
<a href="https://launchpad.net/snappy" rel="noreferrer" target="_blank">https://launchpad.net/snappy</a> and if none, file it?<br>
Thanks!<br>
Didier<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</blockquote></div></div>