diff --git a/cronosagent.sh b/cronosagent.sh index 37bb4d5..54f2110 100755 --- a/cronosagent.sh +++ b/cronosagent.sh @@ -1,5 +1,11 @@ #!/bin/sh +if [ -e /bin/pidof -a -n "$(pidof cronosagent)" ] +then + # Should we do something? + exit +fi + DIRECTORY=$(dirname $0) if [ -f $DIRECTORY/cronosagent.conf ]