From cef66104030607d02401507e5c006b5ebe4a89f4 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 5 Aug 2021 11:47:06 -0400 Subject: [PATCH] [systemd] Add canon-webcam user script --- systemd/.config/systemd/user/canon-webcam.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/.config/systemd/user/canon-webcam.service diff --git a/systemd/.config/systemd/user/canon-webcam.service b/systemd/.config/systemd/user/canon-webcam.service new file mode 100644 index 0000000..97720d4 --- /dev/null +++ b/systemd/.config/systemd/user/canon-webcam.service @@ -0,0 +1,12 @@ +[Unit] +Description=Run gPhoto with a stream from a webcam + +[Service] +Type=simple +ExecStart=/home/powellc/.bin/slr-to-webcam +ExecStop=pkill gphoto2 +Environment=SSH_AUTH_SOCK=%t/keyring/ssh +Restart=on-failure + +[Install] +WantedBy=default.target