From cb1cc666f7ef374bf47efd0dbf01637c38d555f0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Thu, 30 Jan 2025 14:19:32 -0500 Subject: [PATCH] [systemd] Add more ustreamer and snapspot --- systemd/.config/systemd/user/snapspot.service | 11 +++++++++++ systemd/.config/systemd/user/ustreamer.service | 10 ++++++++++ systemd/.config/systemd/user/ustreamer2.service | 10 ++++++++++ systemd/.config/systemd/user/ustreamer3.service | 10 ++++++++++ 4 files changed, 41 insertions(+) create mode 100644 systemd/.config/systemd/user/snapspot.service create mode 100644 systemd/.config/systemd/user/ustreamer.service create mode 100644 systemd/.config/systemd/user/ustreamer2.service create mode 100644 systemd/.config/systemd/user/ustreamer3.service diff --git a/systemd/.config/systemd/user/snapspot.service b/systemd/.config/systemd/user/snapspot.service new file mode 100644 index 0000000..2c25735 --- /dev/null +++ b/systemd/.config/systemd/user/snapspot.service @@ -0,0 +1,11 @@ +[Unit] +Description=Snapclient +After=network.target + +[Service] +ExecStart=/usr/bin/snapclient -h snapcast.service -i 2 -p 2704 +ExecStop=kill $(pidof snapclient) +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/ustreamer.service b/systemd/.config/systemd/user/ustreamer.service new file mode 100644 index 0000000..0ee68ad --- /dev/null +++ b/systemd/.config/systemd/user/ustreamer.service @@ -0,0 +1,10 @@ +[Unit] +Description=uStreamer + +[Service] +ExecStart=/usr/bin/ustreamer -s 0.0.0.0 -p 8081 -r 1920x1080 -d /dev/video0 -m MJPEG +ExecStop=kill $(pidof ustreamer) +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/ustreamer2.service b/systemd/.config/systemd/user/ustreamer2.service new file mode 100644 index 0000000..9251178 --- /dev/null +++ b/systemd/.config/systemd/user/ustreamer2.service @@ -0,0 +1,10 @@ +[Unit] +Description=uStreamer + +[Service] +ExecStart=/usr/bin/ustreamer -s 0.0.0.0 -p 8082 -r 1920x1080 -d /dev/video2 -m MJPEG +ExecStop=kill $(pidof ustreamer) +Restart=on-failure + +[Install] +WantedBy=default.target diff --git a/systemd/.config/systemd/user/ustreamer3.service b/systemd/.config/systemd/user/ustreamer3.service new file mode 100644 index 0000000..bb86d36 --- /dev/null +++ b/systemd/.config/systemd/user/ustreamer3.service @@ -0,0 +1,10 @@ +[Unit] +Description=uStreamer + +[Service] +ExecStart=/usr/bin/ustreamer -s 0.0.0.0 -p 8083 -r 1920x1080 -d /dev/video4 -m MJPEG +ExecStop=kill $(pidof ustreamer) +Restart=on-failure + +[Install] +WantedBy=default.target