2013-12-21 14:51:11 -06:00
|
|
|
#!@SBINDIR@/openrc-run
|
2009-05-01 15:11:40 +01:00
|
|
|
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
2011-06-29 19:46:31 -04:00
|
|
|
# Released under the 2-clause BSD license.
|
2008-11-03 15:31:01 +00:00
|
|
|
|
2008-11-03 16:16:12 +00:00
|
|
|
description="Kill all processes so we can unmount disks cleanly."
|
|
|
|
|
2012-07-02 22:04:22 -05:00
|
|
|
depend()
|
|
|
|
{
|
|
|
|
keyword -prefix
|
|
|
|
}
|
|
|
|
|
2008-11-03 15:31:01 +00:00
|
|
|
start()
|
|
|
|
{
|
|
|
|
ebegin "Terminating remaining processes"
|
2011-06-23 21:52:44 -05:00
|
|
|
killall5 -15 ${killall5_opts}
|
2008-11-03 15:31:01 +00:00
|
|
|
sleep 1
|
|
|
|
eend 0
|
2011-01-17 04:49:07 -05:00
|
|
|
ebegin "Killing remaining processes"
|
2011-06-23 21:52:44 -05:00
|
|
|
killall5 -9 ${killall5_opts}
|
2008-11-03 15:31:01 +00:00
|
|
|
sleep 1
|
|
|
|
eend 0
|
|
|
|
}
|