25
25
python $START_CMD > $LOG_FILE 2>&1 &
32
32
proccess=`pgrep -fl "$START_CMD"`
34
34
netstat -anp |grep -e ":$PORT"
35
35
if [ -z "$proccess" ]; then
39
43
python $START_CMD > $LOG_FILE 2>&1 &
40
44
echo "Restarted loggerhead. (See $LOG_FOLDER for details.)"
47
47
echo "Usage: loggerheadd { start | stop | status | restart }"