From 6bf67dd0131d8e7f9605a08c55c8355dfae32cc4 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Wed, 17 Jul 2024 21:46:42 -0600 Subject: [PATCH] README: add systemd configs --- systemd/ssh-compose-pro.path | 9 +++++++++ systemd/ssh-compose-pro.service | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 systemd/ssh-compose-pro.path create mode 100644 systemd/ssh-compose-pro.service diff --git a/systemd/ssh-compose-pro.path b/systemd/ssh-compose-pro.path new file mode 100644 index 0000000..bb7967b --- /dev/null +++ b/systemd/ssh-compose-pro.path @@ -0,0 +1,9 @@ +[Unit] +Description=ssh-compose-pro configuration watcher + +[Path] +PathModified=/home/user/.ssh/config.yaml +Unit=ssh-compose-pro.service + +[Install] +WantedBy=multi-user.target diff --git a/systemd/ssh-compose-pro.service b/systemd/ssh-compose-pro.service new file mode 100644 index 0000000..5701eb3 --- /dev/null +++ b/systemd/ssh-compose-pro.service @@ -0,0 +1,6 @@ +[Unit] +Description=ssh-compose-pro configuration runner + +[Service] +ExecStart=/usr/bin/python3 /path/to/ssh_compose_pro/src/main.py /home/user/.ssh/config.yaml --out /home/user/.ssh/config +Type=oneshot