diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-core/initscripts/initscripts-1.0/sendsigs | |
download | poky-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/sendsigs')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/sendsigs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sendsigs b/meta/recipes-core/initscripts/initscripts-1.0/sendsigs new file mode 100755 index 0000000000..34e1b7714b --- /dev/null +++ b/meta/recipes-core/initscripts/initscripts-1.0/sendsigs | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/sh | ||
2 | ### BEGIN INIT INFO | ||
3 | # Provides: sendsigs | ||
4 | # Required-Start: | ||
5 | # Required-Stop: umountnfs | ||
6 | # Default-Start: | ||
7 | # Default-Stop: 0 6 | ||
8 | # Short-Description: Kill all remaining processes. | ||
9 | # Description: | ||
10 | ### END INIT INFO | ||
11 | |||
12 | PATH=/sbin:/bin:/usr/sbin:/usr/bin | ||
13 | |||
14 | # Kill all processes. | ||
15 | echo "Sending all processes the TERM signal..." | ||
16 | killall5 -15 | ||
17 | sleep 5 | ||
18 | echo "Sending all processes the KILL signal..." | ||
19 | killall5 -9 | ||
20 | |||
21 | : exit 0 | ||