~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: Marius Kruger
  • Date: 2008-10-14 12:11:33 UTC
  • mto: This revision was merged to the branch mainline in revision 240.
  • Revision ID: amanic@gmail.com-20081014121133-i3vlwpdfs8gvihy9
fix whitespace

Show diffs side-by-side

added added

removed removed

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