diff options
author | Martin Pihlak | 2008-09-17 10:48:19 +0000 |
---|---|---|
committer | Martin Pihlak | 2008-09-17 10:48:19 +0000 |
commit | 7d9d67d1022ff4fb366d8cf67298e95bb94d6b48 (patch) | |
tree | 6c49284e54d1676e0b2411ca97d279533cd61b4a /scripts/scriptmgr.py | |
parent | 038410701c03df47e8d43f1f9bbfca1d89ab0582 (diff) |
- s/self.jobs/jobs/ in "reload"
- fix "start" error message when job is already running
Diffstat (limited to 'scripts/scriptmgr.py')
-rwxr-xr-x | scripts/scriptmgr.py | 4 |
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 |