File size: 184 Bytes
96ea36d
 
 
03adfb9
96ea36d
 
88c0b9b
 
96ea36d
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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})')