~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: Marius Kruger
  • Date: 2008-10-14 11:53:22 UTC
  • mto: This revision was merged to the branch mainline in revision 240.
  • Revision ID: amanic@gmail.com-20081014115322-d93f030tn7g7gprc
add restart

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        netstat -anp |grep -e ":$PORT"
35
35
        if [ -z "$proccess" ]; then
36
36
        echo "Loggerhead is not running."
 
37
    restart)
 
38
        pkill -f "$START_CMD"
 
39
        python $START_CMD > $LOG_FILE 2>&1 &
 
40
        echo "Restarted loggerhead.   (See $LOG_FOLDER for details.)"
 
41
        ;;
37
42
    else
38
43
        echo "Loggerhead is running."
39
44
        fi
40
45
        ;;
41
 
 
42
46
    *)
43
 
        echo "Usage: loggerheadd { start | stop | status }"
 
47
        echo "Usage: loggerheadd { start | stop | status | restart }"
44
48
    exit 1
45
49
esac