From 3cbd966c7de4970eca47c0b1601bdf037fbc983a Mon Sep 17 00:00:00 2001 From: jb-alvarado Date: Thu, 17 Mar 2022 10:26:11 +0100 Subject: [PATCH] add systemd service --- assets/ffplayout_engine.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 assets/ffplayout_engine.service diff --git a/assets/ffplayout_engine.service b/assets/ffplayout_engine.service new file mode 100644 index 00000000..a4445d45 --- /dev/null +++ b/assets/ffplayout_engine.service @@ -0,0 +1,14 @@ +[Unit] +Description=python and ffmpeg based playout +After=network.target + +[Service] +ExecStart= /usr/local/bin/ffplayout +ExecReload=/bin/kill -1 $MAINPID +Restart=always +RestartSec=1 +User=www-data +Group=www-data + +[Install] +WantedBy=multi-user.target