<div dir="auto">Disabling systemd socket  (snapd.socket) is just half a task. You do not really want systemd to run your service (snapd.service) as you are running it already in debug mode from IDE. Another thing, activation library expects systemd env variables (LISTEN_PID, LISTEN_FDS) to be set, so there should be fallback to standalone mode.<div dir="auto"><br></div><div dir="auto">Again, I am actually asking how do you guys debug it from your IDE, as I do not want to reinvent things?</div><div dir="auto"><br></div><div dir="auto">If you are interested in some pull request for snapd to create these sockets by its own when ran outside of systemd, let me know :)</div><div dir="auto"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 Dec 2016 09:11, "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 05/12/2016 à 09:58, Boris Rybalkin a écrit :<br>
> Hello,<br>
><br>
> Is it possible to run snapd for debugging without systemd socket<br>
> activation ?<br>
><br>
> There is a check here:<br>
> <a href="https://github.com/snapcore/snapd/blob/master/daemon/daemon.go#L198" rel="noreferrer" target="_blank">https://github.com/snapcore/<wbr>snapd/blob/master/daemon/<wbr>daemon.go#L198</a><br>
><br>
> Which seems to expect socket from systemd.<br>
><br>
> I was able to run and debug without systemd by adding explicit socket<br>
> creation lines if activation did not return a valid listener.<br>
><br>
> Should there be some 'else if "STANDALONE_MODE" == 1 then create<br>
> sockets' ?<br>
><br>
> I am using Idea go plugin and ideally hitting shift + f9 should just work.<br>
Hey,<br>
<br>
I'm unsure if there is any way in snapd to handle this directly.<br>
<br>
However, you can use systemd functionality to disable the socket listening:<br>
sudo systemctl disable snapd.socket<br>
<br>
Cheers,<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>