equal
deleted
inserted
replaced
5 %s""" |
5 %s""" |
6 |
6 |
7 import sys |
7 import sys |
8 from os import remove, listdir, system, pathsep |
8 from os import remove, listdir, system, pathsep |
9 try: |
9 try: |
10 from os import kill, getpgid |
10 from os import kill, getpgi |
11 except ImportError: |
11 except ImportError: |
12 def kill(*args): pass |
12 def kill(*args): pass |
13 def getpgid(): pass |
13 def getpgid(): pass |
14 |
14 |
15 from os.path import exists, join, isfile, isdir |
15 from os.path import exists, join, isfile, isdir |
412 if exists(pidf) and not force: |
412 if exists(pidf) and not force: |
413 msg = "%s seems to be running. Remove %s by hand if necessary or use \ |
413 msg = "%s seems to be running. Remove %s by hand if necessary or use \ |
414 the --force option." |
414 the --force option." |
415 raise ExecutionError(msg % (appid, pidf)) |
415 raise ExecutionError(msg % (appid, pidf)) |
416 helper.start_server(config, debug) |
416 helper.start_server(config, debug) |
417 if not debug: |
|
418 # in debug mode, we reach this point once the instance is stopped... |
|
419 print 'instance %s %s' % (appid, self.actionverb) |
|
420 |
417 |
421 |
418 |
422 class StopInstanceCommand(InstanceCommand): |
419 class StopInstanceCommand(InstanceCommand): |
423 """Stop the given instances. |
420 """Stop the given instances. |
424 |
421 |