瀏覽代碼

[systemd] Add canon-webcam user script

Colin Powell 3 年之前
父節點
當前提交
cef6610403
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      systemd/.config/systemd/user/canon-webcam.service

+ 12 - 0
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