aboutsummaryrefslogtreecommitdiff
path: root/init.d/killprocs.in
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/killprocs.in')
-rw-r--r--init.d/killprocs.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/init.d/killprocs.in b/init.d/killprocs.in
new file mode 100644
index 00000000..a969d52a
--- /dev/null
+++ b/init.d/killprocs.in
@@ -0,0 +1,15 @@
+#!@PREFIX@/sbin/runscript
+# Copyright 2007-2008 Roy Marples <roy@marples.name>
+# All rights reserved. Released under the 2-clause BSD license.
+
+start()
+{
+ ebegin "Terminating remaining processes"
+ killall5 -15
+ sleep 1
+ eend 0
+ ebegin "Killing remaining processes"
+ killall5 -9
+ sleep 1
+ eend 0
+}