X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=usr%2Flocal%2Fbin%2Fupdate-stats;h=7f3fb42429f941c3663e5afd293930894ed79d1f;hb=0499aedce8b84c8869370cd77b522cf546f768a3;hp=749fed9b11d2ef23f7b11417dac8de498d65328a;hpb=fdb4133d7709fe90a1c9fa2a93043bd043a44410;p=matthijs%2Fservers%2Fdrsnuggles.git diff --git a/usr/local/bin/update-stats b/usr/local/bin/update-stats index 749fed9..7f3fb42 100755 --- a/usr/local/bin/update-stats +++ b/usr/local/bin/update-stats @@ -143,8 +143,12 @@ if lighttpd_conf != f.read(): # Reload lighttpd configuration print "Reloading lighttpd: %s" % reload_lighttpd - subprocess.call(reload_lighttpd, shell=True) - + ret = subprocess.call(reload_lighttpd, shell=True) + + if ret != 0: + print >> sys.stderr, "Reloading lighttpd failed. Logging.conf was:" + print >> sys.stderr, lighttpd_conf + f.close() # Now, run awstats to parse log files.