snapd debug without systemd activation
Didier Roche
didrocks at ubuntu.com
Mon Dec 5 09:11:03 UTC 2016
Le 05/12/2016 à 09:58, Boris Rybalkin a écrit :
> Hello,
>
> Is it possible to run snapd for debugging without systemd socket
> activation ?
>
> There is a check here:
> https://github.com/snapcore/snapd/blob/master/daemon/daemon.go#L198
>
> Which seems to expect socket from systemd.
>
> I was able to run and debug without systemd by adding explicit socket
> creation lines if activation did not return a valid listener.
>
> Should there be some 'else if "STANDALONE_MODE" == 1 then create
> sockets' ?
>
> I am using Idea go plugin and ideally hitting shift + f9 should just work.
Hey,
I'm unsure if there is any way in snapd to handle this directly.
However, you can use systemd functionality to disable the socket listening:
sudo systemctl disable snapd.socket
Cheers,
Didier
More information about the Snapcraft
mailing list