Permalink
Browse files

Added a five second pause between starting the qwebirc server and cap…

…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...
1 parent eca5f45 commit 9f915e07abaeab9cd85437adfd33b0c548659361 @virtadpt virtadpt committed Apr 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 porteus/qwebirc/rc.qwebirc
@@ -24,10 +24,12 @@ case "$1" in
./run.py
# Save the PID.
+ sleep 5
ps ax | grep [r]un.py | grep -v 'grep' | awk '{print $1}' > $PID
;;
'stop')
kill `cat $PID`
+ rm -f $PID
;;
'status')
# Extract the PID from the process list, in case the PID file doesn't

0 comments on commit 9f915e0

Please sign in to comment.