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