do it this way
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# quit if another instance is already running
|
# 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"
|
echo "mpd-monitor already running"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user