Along with socket-mode, a socket keyword also has an attribute of “listen-stream”. https://github.com/snapcore/snapcraft/blob/main/snapcraft/projects.py#L161-L165
I found out something about install-mode
today that isn’t documented here. If you have a service (oneshot
, simple
, etc), and install-mode
is disable
, then disabling and re-enabling the snap will cause those install-mode disabled services to be disabled again. This is somewhat counter-intuitive to the name “install-mode” because it triggers outside of an install.
So the relevant commands to reproduce this are:
sudo snap install mySnap
snap services mySnap # install-mode disabled services are disabled
sudo snap start --enable mySnap # manually enable services (maybe your snap uses snapctl instead)
snap services mySnap # install-mode disabled services are enabled
snap disable mySnap
snap services mySnap # all services are disabled
snap enable mySnap
snap services mySnap # only non install-mode disabled services are enabled