summaryrefslogtreecommitdiffstats
path: root/nova/server.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/server.py')
-rw-r--r--nova/server.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/nova/server.py b/nova/server.py
index c58a15041..cb424caa1 100644
--- a/nova/server.py
+++ b/nova/server.py
@@ -54,11 +54,11 @@ def stop(pidfile):
"""
# Get the pid from the pidfile
try:
- pid = int(open(pidfile,'r').read().strip())
+ pid = int(open(pidfile, 'r').read().strip())
except IOError:
message = "pidfile %s does not exist. Daemon not running?\n"
sys.stderr.write(message % pidfile)
- return # not an error in a restart
+ return
# Try killing the daemon process
try:
@@ -143,6 +143,5 @@ def daemonize(args, name, main):
stderr=stderr,
uid=FLAGS.uid,
gid=FLAGS.gid,
- files_preserve=files_to_keep
- ):
+ files_preserve=files_to_keep):
main(args)