try: to fix killing
This commit is contained in:
@@ -67,7 +67,7 @@ case "$3" in
|
||||
fi
|
||||
if [[ "$2" == "video" ]]; then
|
||||
media_file=$(find /opt/raspscreen/media \( -name "*.mp4" -o -name "*.mkv" -o -name "*.mov" -o -name "*.webm" \))
|
||||
|
||||
|
||||
if [[ -z "$media_file" ]]; then
|
||||
echo "No compatible media file found. Wrong mode?"
|
||||
echo "Exiting in 20 seconds..."
|
||||
|
||||
@@ -9,7 +9,7 @@ Environment=DISPLAY=:0
|
||||
WorkingDirectory=/opt/raspscreen
|
||||
ExecStartPre=/usr/bin/sleep 5
|
||||
ExecStart=/opt/raspscreen/bin/manage.sh start presentation --foreground
|
||||
ExecStop=/opt/raspscreen/bin/manage kill video
|
||||
ExecStop=/opt/raspscreen/bin/manage.sh kill presentation
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
||||
@@ -9,7 +9,7 @@ Environment=DISPLAY=:0
|
||||
WorkingDirectory=/opt/raspscreen
|
||||
ExecStartPre=/usr/bin/sleep 5
|
||||
ExecStart=/opt/raspscreen/bin/manage.sh start video --foreground
|
||||
ExecStop=/opt/raspscreen/bin/manage kill video
|
||||
ExecStop=/opt/raspscreen/bin/manage.sh kill video
|
||||
Restart=always
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
||||
Reference in New Issue
Block a user