Skip to content

Commit

Permalink
squash w/ setup. Clean up controller.py - use --test-mode, remove unu…
Browse files Browse the repository at this point in the history
…sed parameter.
  • Loading branch information
korydraughn committed Nov 13, 2024
1 parent 61dbf6f commit ac1defa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/irods/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def start(self, write_to_stdout=False, test_mode=False):

env_var_name = 'IRODS_ENABLE_TEST_MODE'
if test_mode or (env_var_name in os.environ and os.environ[env_var_name] == '1'):
cmd.append('-t')
cmd.append('--test-mode')

if write_to_stdout:
l.info('Starting iRODS server ...')
Expand All @@ -111,14 +111,14 @@ def start(self, write_to_stdout=False, test_mode=False):

self.wait_for_server_to_start()

def stop(self, timeout=20, graceful=False):
def stop(self, graceful=False):
l = logging.getLogger(__name__)
self.config.clear_cache()
l.debug('Calling stop on IrodsController')

server_pid = self.get_server_pid()
if server_pid is None:
l.info('iRODS server is not running')
l.info('No iRODS server running')
return

l.info('Stopping iRODS server...')
Expand All @@ -137,7 +137,7 @@ def reload_configuration(self):

server_pid = self.get_server_pid()
if server_pid is None:
l.info('iRODS server is not running')
l.info('No iRODS server running')
return

old_agent_factory_pid = self.find_agent_factory_pid()
Expand Down

0 comments on commit ac1defa

Please sign in to comment.