diff options
author | Mike Crute <mike@crute.us> | 2019-01-11 04:22:22 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-01-11 04:22:22 +0000 |
commit | c65de179509081e5010e86212f15ec34d238f74b (patch) | |
tree | 7d17389efdde123c9d5755b52d30a7bdbb6c8ed3 | |
parent | eff1e39f2efc8d6c3b9d336d75d95694861fee57 (diff) | |
download | mfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.tar.bz2 mfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.tar.xz mfi_homekit-c65de179509081e5010e86212f15ec34d238f74b.zip |
Add cleanup process script
-rw-r--r-- | cleanup_processes.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cleanup_processes.sh b/cleanup_processes.sh new file mode 100644 index 0000000..144a01f --- /dev/null +++ b/cleanup_processes.sh | |||
@@ -0,0 +1,11 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | sed -i -e '/ubnt-websockets/s/^/#/' -e '/telnetd/s/^/#/' -e '/mca[-d]/s/^/#/' -e '/lighttpd/s/^/#/' /etc/inittab | ||
4 | kill -HUP 1 | ||
5 | pkill -9 ubnt-websockets | ||
6 | pkill -9 lighttpd | ||
7 | pkill upnpd | ||
8 | pkill telnetd | ||
9 | pkill mca-monitor | ||
10 | pkill mcad | ||
11 | pkill avahi-daemon | ||