[systemd] Add timelapse and ustreamer4 service
This commit is contained in:
7
systemd/.config/systemd/user/timelapse-build.service
Normal file
7
systemd/.config/systemd/user/timelapse-build.service
Normal file
@ -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
systemd/.config/systemd/user/timelapse-build.timer
Normal file
10
systemd/.config/systemd/user/timelapse-build.timer
Normal file
@ -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
systemd/.config/systemd/user/ustreamer4.service
Normal file
10
systemd/.config/systemd/user/ustreamer4.service
Normal file
@ -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
|
||||
Reference in New Issue
Block a user