Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Audio-AGI
/
WavJourney
like
189
Sleeping
App
Files
Files
Community
24
refs/pr/15
WavJourney
/
scripts
/
kill_services.py
zzk1st
Fixed multi-user
03adfb9
over 1 year ago
raw
Copy download link
history
blame
Safe
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}
)'
)