Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Audio-AGI
/
WavJourney
like
189
Sleeping
App
Files
Files
Community
24
7fd9852
WavJourney
/
scripts
/
kill_services.py
zzk1st
Fixed multi-user
03adfb9
about 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}
)'
)