This commit is contained in:
2026-03-09 00:58:50 -07:00
parent d48c568f7a
commit b03003f401

View File

@@ -1,15 +1,8 @@
#!/bin/sh
# exit if another instance is already running
#if [ !$(pidof mpd-monitor > /dev/null) ]; then
# echo "mpd-monitor already running"
# exit
#fi
# this might actually work...
RUNNING=$(pidof mpc > /dev/null)
if [ !$RUNNING ]; then
echo "mpd-monitor already running"
PID=$(pgrep -x mpc)
if [ -n "$PID" ]; then
echo "another instance of mpd-monitor already running"
exit
fi