AppDaemon VSCode Tunnel
Install Service
Use the install_service.py script to install.
- Creates symlinks to
/etc/systemd/systemexample.socketexample.service
- Reloads the service definitions
- Starts the
example.socket - Enables the
example.socketto start at boot
Note
The
example.socketdoes causeexample.serviceto start when something connects to the socket at/run/example.sock.
Caution
example.servicedoes not stop when disconnecting from/run/example.sock
Scripts
install_service.py: Installs the services on the systemrun_service.py: Used to demo running the code tunnel from a python functiontest_socket.py: Opens a connection to the socketcleanup_services.sh: Stops services and removes symlinks
Other Commands
Reload systemd units
sudo systemctl daemon-reload
List loaded units
systemctl list-units --type=service
Check statuses
systemctl status example.socket
Description
Languages
Python
100%