From 28108567b369f351b914bc61c3632c19ca13aab8 Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Sun, 16 Jun 2024 00:05:17 -0500 Subject: [PATCH] added readme --- README.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..120495b --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# AppDaemon VSCode Tunnel + +## Install Service + +Use the `install_service.py` script to install. + +- Creates symlinks to `/etc/systemd/system` + - `example.socket` + - `example.service` +- Reloads the service definitions +- Starts the `example.socket` +- Enables the `example.socket` to start at boot + +> [!NOTE] +> The `example.socket` does cause `example.service` to start when something connects to the socket at `/run/example.sock`. + +> [!CAUTION] +> `example.service` does not stop when disconnecting from `/run/example.sock` + +## Other Commands + +Reload systemd units + +```shell +sudo systemctl daemon-reload +``` + +List loaded units + +```shell +systemctl list-units --type=service +``` + +Check statuses + +```shell +systemctl status example.socket +```