Skip to content

Commit

Permalink
Fixed redisqworker path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sachin Agarwal committed Mar 13, 2015
1 parent 4264c5a commit acd8410
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion saturnring_postbootup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ for ii in `seq 0 $COUNTMAX`;
do
cat <<EOF >> /etc/supervisor/conf.d/saturnworker.conf
[program:django-rqworker-$ii]
command=$INSTALLLOCATION/misc/rqworker.sh queue$ii
command=$INSTALLLOCATION/redisqconf/rqworker.sh queue$ii
user=$INSTALLUSER
stdout_logfile=$SATURNWKDIR/saturnringlog/rqworker-$ii.log
redirect_stderr=true
Expand Down
8 changes: 8 additions & 0 deletions saturnring_postbootup_as_vagrant_user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,11 @@ ssh-keygen -f saturnkey.pub -e -m pem > saturnkey.pem
git add *
git commit -a -m "Created Saturn keys"

mkdir -p $INSTALLLOCATION/redisqconf
cat <<EOF > $INSTALLLOCATION/redisqconf/rqworker.sh
#!/bin/bash
source $INSTALLLOCATION/saturnenv/bin/activate
python $INSTALLLOCATION/ssddj/manage.py rqworker default
EOF
chmod +x $INSTALLLOCATION/redisqconf/rqworker.sh

0 comments on commit acd8410

Please sign in to comment.