ソースを参照

[systemd] Add timelapse and ustreamer4 service

Colin Powell 23 時間 前
コミット
c363cbcde6

+ 7 - 0
systemd/.config/systemd/user/timelapse-build.service

@@ -0,0 +1,7 @@
+[Unit]
+Description="Build latest camera timelapse vids"
+Requires=timelapse-build.timer
+
+[Service]
+Type=simple
+ExecStart=/home/powellc/.bin/webcam-build-timelapses

+ 10 - 0
systemd/.config/systemd/user/timelapse-build.timer

@@ -0,0 +1,10 @@
+[Unit]
+Description="Timer for the timelapse builder"
+
+[Timer]
+Unit=timelapse-build.service
+Persistent=true
+OnCalendar=*-*-* 02:30:00
+
+[Install]
+WantedBy=timers.target

+ 10 - 0
systemd/.config/systemd/user/ustreamer4.service

@@ -0,0 +1,10 @@
+[Unit]
+Description=uStreamer
+
+[Service]
+ExecStart=/usr/bin/ustreamer -s 0.0.0.0 -p 8084 -r 1920x1080 -d /dev/video6 -m MJPEG
+ExecStop=kill $(pidof ustreamer)
+Restart=on-failure
+
+[Install]
+WantedBy=default.target