Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Commit

Permalink
Added a five second pause between starting the qwebirc server and cap…
Browse files Browse the repository at this point in the history
…turing

its PID.

Added an rm to delete the PIDfile after run.py is terminated.

Signed-off-by: The Doctor <drwho@virtadpt.net>
  • Loading branch information
virtadpt committed Apr 4, 2012
1 parent eca5f45 commit 9f915e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions porteus/qwebirc/rc.qwebirc
Expand Up @@ -24,10 +24,12 @@ case "$1" in
./run.py ./run.py


# Save the PID. # Save the PID.
sleep 5
ps ax | grep [r]un.py | grep -v 'grep' | awk '{print $1}' > $PID ps ax | grep [r]un.py | grep -v 'grep' | awk '{print $1}' > $PID
;; ;;
'stop') 'stop')
kill `cat $PID` kill `cat $PID`
rm -f $PID
;; ;;
'status') 'status')
# Extract the PID from the process list, in case the PID file doesn't # Extract the PID from the process list, in case the PID file doesn't
Expand Down

0 comments on commit 9f915e0

Please sign in to comment.