cshc / cshc_website

The main repository for the Cambridge South Hockey Club website source code
3 stars 0 forks source link

restart_server fabric command is broken #199

Open grahammcculloch opened 9 years ago

grahammcculloch commented 9 years ago
[sphinx.mythic-beasts.com] run: kill `ps --User 946 | grep django.fcgi | awk '{print $1}'`
[sphinx.mythic-beasts.com] out: kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
[sphinx.mythic-beasts.com] out:

Fatal error: run() received nonzero return code 1 while executing!

Requested: kill `ps --User 946 | grep django.fcgi | awk '{print $1}'`
Executed: /bin/bash -l -c "kill \`ps --User 946 | grep django.fcgi | awk '{print \$1}'\`"
grahammcculloch commented 9 years ago

Works sometimes - seems to be an intermittent failure on the second call to it (at the end). Don't think its critical.

grahammcculloch commented 7 years ago

Maybe wrap in a try/catch kind of block and log any failure?