From 4e04bec8ad550147f287e2557140fe27fc7a23b9 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 8 Nov 2023 23:31:06 +0100 Subject: [PATCH] add systemd service. --- player/player-back.service | 11 +++++++++++ player/player-front.service | 11 +++++++++++ player/saxophone.service | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 player/player-back.service create mode 100644 player/player-front.service create mode 100644 player/saxophone.service diff --git a/player/player-back.service b/player/player-back.service new file mode 100644 index 0000000..c2ded19 --- /dev/null +++ b/player/player-back.service @@ -0,0 +1,11 @@ +[Unit] +Description=player + +[Service] +Type=simple +Restart=always +KillSignal=SIGINT +ExecStart=/srv/pandora/t_for_time/player/player.py --mode peer--playlist /srv/t_for_time/render/back.m3u + +[Install] +WantedBy=default.target diff --git a/player/player-front.service b/player/player-front.service new file mode 100644 index 0000000..6090352 --- /dev/null +++ b/player/player-front.service @@ -0,0 +1,11 @@ +[Unit] +Description=player + +[Service] +Type=simple +Restart=always +KillSignal=SIGINT +ExecStart=/srv/pandora/t_for_time/player/player.py --mode main --playlist /srv/t_for_time/render/front.m3u + +[Install] +WantedBy=default.target diff --git a/player/saxophone.service b/player/saxophone.service new file mode 100644 index 0000000..dc6ce7a --- /dev/null +++ b/player/saxophone.service @@ -0,0 +1,11 @@ +[Unit] +Description=saxophone loop + +[Service] +Type=simple +Restart=always +ExecStart=/usr/bin/mpv --quiet --loop /srv/t_for_time/render/Saxophone-5.1.mp4 +KillSignal=SIGINT + +[Install] +WantedBy=default.target