repo: music action: commit revision: path_from: revision_from: 89d0850eeb46107700d95bacf2cd68a07035d7d4: path_to: revision_to:
commit 89d0850eeb46107700d95bacf2cd68a07035d7d4 Author: epochDate: Thu Jul 30 08:05:24 2020 -0500 put a check to make sure the pid file actually exists before attempting to use it diff --git a/music-next b/music-next
--- a/music-next
+++ b/music-next
@@ -1,3 +1,6 @@
#!/bin/sh
-logger -p info -n logserver "music next'd"
-exec kill -USR2 "$(cat ${PREFIX}/var/run/music-init.pid)"
+if [ -f "${PREFIX}/run/music/init.pid" ];then
+ logger -p info -n logserver "music next'd"
+ exec kill -USR2 "$(cat ${PREFIX}/run/music/init.pid)"
+fi
+logger -p info -n logserver "FAILED TO NEXT. PID FILE MISSING."
-----END OF PAGE-----