Skip to content

Truelite/closesocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

closesocks

A simple script to list idle open sockets for a process, and optionally close them.

It generates ss command lines to kill the processes. By default it shows them, and can also directly run them.

$ closesocks --help
usage: closesocks [-h] [--verbose] [--debug] [--pid pid] [--idle seconds]
                  [--force]

List idle open sockets, and optionally close them

optional arguments:
  -h, --help         show this help message and exit
  --verbose, -v      verbose output
  --debug            debug output
  --pid pid, -p pid  pid to list
  --idle seconds     select connections idle for more than this amount of
                     seconds (default: 3600)
  --force, -f        run the commands instead of listing them

About

List idle open sockets, and optionally close them

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages