WavJourney / scripts /kill_services.py
zzk1st's picture
Fixed multi-user
03adfb9
raw
history blame
184 Bytes
import os
# Extract values for each application
service_port = os.environ.get('WAVJOURNEY_SERVICE_PORT')
# Execute the commands
os.system(f'kill $(lsof -t -i :{service_port})')