From 7ce3b12e4a76d1926077d7efa57e5e9d3538de33 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 12 Aug 2016 22:19:32 +0200 Subject: adds example systemd units, fixes #48 --- .../systemd-units/voctomix-bgloop-source.service | 14 ++++++++++++++ example-scripts/systemd-units/voctomix-cam1-source.service | 14 ++++++++++++++ example-scripts/systemd-units/voctomix-cam2-source.service | 14 ++++++++++++++ .../systemd-units/voctomix-grabber-source.service | 14 ++++++++++++++ .../systemd-units/voctomix-music-source.service | 14 ++++++++++++++ .../systemd-units/voctomix-pause-source.service | 14 ++++++++++++++ .../systemd-units/voctomix-recording-sink.service | 14 ++++++++++++++ .../systemd-units/voctomix-streaming-sink.service | 14 ++++++++++++++ example-scripts/systemd-units/voctomix-voctocore.service | 13 +++++++++++++ 9 files changed, 125 insertions(+) create mode 100644 example-scripts/systemd-units/voctomix-bgloop-source.service create mode 100644 example-scripts/systemd-units/voctomix-cam1-source.service create mode 100644 example-scripts/systemd-units/voctomix-cam2-source.service create mode 100644 example-scripts/systemd-units/voctomix-grabber-source.service create mode 100644 example-scripts/systemd-units/voctomix-music-source.service create mode 100644 example-scripts/systemd-units/voctomix-pause-source.service create mode 100644 example-scripts/systemd-units/voctomix-recording-sink.service create mode 100644 example-scripts/systemd-units/voctomix-streaming-sink.service create mode 100644 example-scripts/systemd-units/voctomix-voctocore.service (limited to 'example-scripts') diff --git a/example-scripts/systemd-units/voctomix-bgloop-source.service b/example-scripts/systemd-units/voctomix-bgloop-source.service new file mode 100644 index 0000000..3138e81 --- /dev/null +++ b/example-scripts/systemd-units/voctomix-bgloop-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix bgloop-source +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/gstreamer/source-videotestsrc-as-background-loop.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-cam1-source.service b/example-scripts/systemd-units/voctomix-cam1-source.service new file mode 100644 index 0000000..e600575 --- /dev/null +++ b/example-scripts/systemd-units/voctomix-cam1-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix test-video-source cam1 +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/gstreamer/source-videotestsrc-as-cam1.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-cam2-source.service b/example-scripts/systemd-units/voctomix-cam2-source.service new file mode 100644 index 0000000..70707ad --- /dev/null +++ b/example-scripts/systemd-units/voctomix-cam2-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix test-video-source cam2 +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/gstreamer/source-videotestsrc-as-cam2.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-grabber-source.service b/example-scripts/systemd-units/voctomix-grabber-source.service new file mode 100644 index 0000000..8d3ba8c --- /dev/null +++ b/example-scripts/systemd-units/voctomix-grabber-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix video-source for framegrabber +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/gstreamer/source-videotestsrc-as-grabber.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-music-source.service b/example-scripts/systemd-units/voctomix-music-source.service new file mode 100644 index 0000000..97a9ba2 --- /dev/null +++ b/example-scripts/systemd-units/voctomix-music-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix music-source +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/ffmpeg/source-nostream-music.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-pause-source.service b/example-scripts/systemd-units/voctomix-pause-source.service new file mode 100644 index 0000000..c8f7c55 --- /dev/null +++ b/example-scripts/systemd-units/voctomix-pause-source.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix pause-source +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/ffmpeg/source-nostream-pause-loop.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-recording-sink.service b/example-scripts/systemd-units/voctomix-recording-sink.service new file mode 100644 index 0000000..a38773e --- /dev/null +++ b/example-scripts/systemd-units/voctomix-recording-sink.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix recording-sink +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/ffmpeg/record-mixed-ffmpeg-segmented.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-streaming-sink.service b/example-scripts/systemd-units/voctomix-streaming-sink.service new file mode 100644 index 0000000..8cc53cc --- /dev/null +++ b/example-scripts/systemd-units/voctomix-streaming-sink.service @@ -0,0 +1,14 @@ +[Unit] +Description = voctomix streaming-hd sink +After = voctomix-voctocore.service +Requires = voctomix-voctocore.service + +[Service] +Type = simple +ExecStart = /usr/share/doc/voctomix/example-scripts/ffmpeg/stream-hd.sh +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = voctomix-voctocore.service diff --git a/example-scripts/systemd-units/voctomix-voctocore.service b/example-scripts/systemd-units/voctomix-voctocore.service new file mode 100644 index 0000000..9f5a759 --- /dev/null +++ b/example-scripts/systemd-units/voctomix-voctocore.service @@ -0,0 +1,13 @@ +[Unit] +Description = voctomix core +After=network.target + +[Service] +Type = simple +ExecStart = /usr/share/voctomix/voctocore/voctocore.py -vv +Restart = always +RestartSec = 1s +StartLimitInterval = 0 + +[Install] +WantedBy = multi-user.target -- cgit v1.2.3