Changeset 4882
- Timestamp:
- 08/30/07 09:11:21 (11 months ago)
- Files:
-
- trackerd/trunk/trackerd/trackerdctl.in (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trackerd/trunk/trackerd/trackerdctl.in
r4503 r4882 35 35 checkpid() { 36 36 RUNNING=0 37 VALID=038 37 39 38 if [ -f $PIDFILE ]; then … … 41 40 42 41 if [ "x$PID" != "x" ]; then 43 RUNNING=144 45 42 if kill -0 $PID 2>/dev/null ; then 46 VALID=143 RUNNING=1 47 44 fi 48 45 fi … … 51 48 52 49 checkrunning() { 53 checkpid 54 55 if [ $RUNNING -eq 1 -a $VALID -eq 0 ]; then 56 echo "$PROG: $CMD: trackerd pid ($PID) is not accessible" 57 exit 1 58 fi 50 checkpid 59 51 60 52 if [ $RUNNING -eq 0 ]; then 61 53 echo "$PROG: $CMD: trackerd is not running" 62 exit 154 exit 63 55 fi 64 56 } … … 68 60 checkpid 69 61 70 if [ $RUNNING -eq 1 -a $VALID -eq 0 ]; then71 echo "$PROG: $CMD: trackerd pid ($PID) is not accessible"72 exit 173 fi74 75 62 if [ $RUNNING -eq 1 ]; then 76 63 echo "$PROG: $CMD: trackerd (pid $PID) already running" … … 103 90 checkpid 104 91 105 if [ $RUNNING -eq 1 -a $VALID -eq 1]; then92 if [ $RUNNING -eq 1 ]; then 106 93 if kill $PID; then 107 94 echo "$PROG: $CMD: trackerd stopped"
