Open grahammcculloch opened 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}'\`"
Works sometimes - seems to be an intermittent failure on the second call to it (at the end). Don't think its critical.
Maybe wrap in a try/catch kind of block and log any failure?