Mkill − Send processes making a active mount point busy a signal
mkill [−SIG] [−u] /mnt1 [/mnt2...]
mkill [−l]
mkill determines all active mount points from /proc/mounts and compares this with the specified mount points. Then mkill seeks for processes making this mount points busy. For this search only the links found in /proc/<pid>/ are used to avoid hangs on files provided by network file systems like nfs(5). The default signal is SIGTERM for termination. If a mount point is not active, that is that it is not found in /proc/mounts, mkill will do exactly nothing.
−<SIG> |
Signals can be specified either by name (e.g. -HUP, -SIGHUP) or by number (e.g. -1). |
||
−0 |
The special signal 0 force mkill to list all processes making the specified mount point busy. |
||
−u |
Perform a lazy umount on the specified mount points before sending the signal SIGTERM or SIGKILL. |
||
−l |
List all known signals. |
mkill -TERM /var
This will terminate all processes accessing a seperate /var partition.
mkill -HUP /dev/pts
All processes using a pseudo-terminal slave will hangup.
Always success which is that zero is returned.
2008 Werner Fink, 2008 SUSE LINUX Products GmbH, Germany.
Werner Fink <werner AT suse DOT de>