do it this way
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
# quit if another instance is already running
|
||||
if [ -n $(pidof mpc idleloop) ];then
|
||||
if [ !$(pidof mpc idleloop > /dev/null) ]; then
|
||||
echo "mpd-monitor already running"
|
||||
exit
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user