summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-25 22:56:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-25 22:56:27 +0000
commitd77a09a475e2d78b8ffc4aa276aa5c91f66de5c5 (patch)
tree0ab9ddc97a6a3f518243a52ede4bbe1f5a7340e5 /usr/local/bin
parent6359a8974a85cb54510d0d1099c6247188cdb7af (diff)
downloadpfsense-d77a09a475e2d78b8ffc4aa276aa5c91f66de5c5.zip
pfsense-d77a09a475e2d78b8ffc4aa276aa5c91f66de5c5.tar.gz
Add kill ghosts script
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/kill_ghosts.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/bin/kill_ghosts.sh b/usr/local/bin/kill_ghosts.sh
new file mode 100755
index 0000000..51ceda4
--- /dev/null
+++ b/usr/local/bin/kill_ghosts.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+# Kill ghost shells
+
+/bin/kill -9 `/bin/ps awux | grep "(sh)" | /usr/bin/grep -v grep | /usr/bin/cut -d" " -f5`
+
OpenPOWER on IntegriCloud