Hi,
You can use fuser to identify and kill processes using port.
return sh(`fuser --kill --namespace ${method} ${port}`)
It's installed by default on Ubuntu and OSMC (Linux distribution based on Debian). lsof isn't installed by default on OSMC (maybe also on Debian).
Hi,
You can use
fuserto identify and kill processes using port.It's installed by default on Ubuntu and OSMC (Linux distribution based on Debian).
lsofisn't installed by default on OSMC (maybe also on Debian).