WavJourney / scripts /kill_services.py
ZeroTwo3's picture
Duplicate from Audio-AGI/WavJourney
8811068
raw
history blame contribute delete
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})')