summaryrefslogtreecommitdiff
path: root/scripts/scriptmgr.py
diff options
context:
space:
mode:
authorMartin Pihlak2008-09-17 10:48:19 +0000
committerMartin Pihlak2008-09-17 10:48:19 +0000
commit7d9d67d1022ff4fb366d8cf67298e95bb94d6b48 (patch)
tree6c49284e54d1676e0b2411ca97d279533cd61b4a /scripts/scriptmgr.py
parent038410701c03df47e8d43f1f9bbfca1d89ab0582 (diff)
- s/self.jobs/jobs/ in "reload"
- fix "start" error message when job is already running
Diffstat (limited to 'scripts/scriptmgr.py')
-rwxr-xr-xscripts/scriptmgr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/scriptmgr.py b/scripts/scriptmgr.py
index 8aeb6fba..3f589c8f 100755
--- a/scripts/scriptmgr.py
+++ b/scripts/scriptmgr.py
@@ -130,7 +130,7 @@ class ScriptMgr(skytools.DBScript):
os.chdir(job['cwd'])
pidfile = job['pidfile']
if os.path.isfile(pidfile):
- self.log.warning("Script %s seems running")
+ self.log.warning("Script %s seems running" % job_name)
return 0
cmd = "%(script)s %(config)s %(args)s -d" % job
res = os.system(cmd)
@@ -220,7 +220,7 @@ class ScriptMgr(skytools.DBScript):
time.sleep(2)
self.cmd_start(n)
elif cmd == "reload":
- for n in self.jobs:
+ for n in jobs:
self.cmd_reload(n)
else:
print "unknown command:", cmd