Commented out restart of jail service

This commit is contained in:
2023-07-26 15:25:21 -04:00
parent e7db02dce3
commit cac20e14b6

View File

@@ -507,13 +507,13 @@ if __name__ == '__main__':
if response['ok']: if response['ok']:
logger.info('Successfully set jail storage pool to {}'.format(jail_storage_pool)) logger.info('Successfully set jail storage pool to {}'.format(jail_storage_pool))
# restart the jails service # restart the jails service
jails_service_name = 'jails' #jails_service_name = 'jails'
logger.debug('Restarting the {} service'.format(jails_service_name)) #logger.debug('Restarting the {} service'.format(jails_service_name))
response = request('service/restart', api_key, 'POST', {'service': jails_service_name}) #response = request('service/restart', api_key, 'POST', {'service': jails_service_name})
if response['ok']: #if response['ok']:
logger.debug('Service {} was restarted successfully'.format(jails_service_name)) #logger.debug('Service {} was restarted successfully'.format(jails_service_name))
else: #else:
logger.error('Service {} was NOT restarted'.format(jails_service_name)) #logger.error('Service {} was NOT restarted'.format(jails_service_name))
# start any jails that are set to start on boot but are most likely on an encrypted pool # start any jails that are set to start on boot but are most likely on an encrypted pool
API_JAILS = request('jail', api_key)['response'] API_JAILS = request('jail', api_key)['response']
for jail in API_JAILS: for jail in API_JAILS: