<div dir="ltr"><div><div>Hello,<br><br></div>I am porting uwsgi systemd config to snap and having some problem. Snap installs correctly while systemd cannot start the service (some other configuration issue). I think uwsgi will notify systemd that it has started and looks like snap daemon does not support Type=notify.<br><br></div><div>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 }}/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></div><div>Which is almost exact copy of the recommended config by uwsgi developers:<br><a href="http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html">http://uwsgi-docs.readthedocs.io/en/latest/Systemd.html</a><br></div><div><br></div><div>This is snap version:<br>---------------------<br> uwsgi:<br> command: uwsgi/bin/uwsgi --ini ${SNAP_COMMON}/config/uwsgi/public.ini<br> daemon: simple<br> restart-condition: always<br> plugs: [network, network-bind]<br></div><div><div><div>---------------------<br><br></div><div>Snap way of defining systemd services seems very limited, is there a way to provide systemd version of the config in snapd?<br><br></div><div>Thanks<br></div><div><br></div><div>-- <br><div class="gmail_signature">Boris Rybalkin<br><a href="mailto:ribalkin@gmail.com" target="_blank">ribalkin@gmail.com</a></div>
</div></div></div></div>