From 069e7a527d0c6bfb8bd79395485c0141feac2598 Mon Sep 17 00:00:00 2001 From: Kurt J. Bosch Date: Wed, 3 Mar 2010 17:50:19 +0100 Subject: [PATCH 5/5] Add a post sigterm hook to allow cleaner restart of splash daemons --- rc.shutdown | 1 + rc.single | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/rc.shutdown b/rc.shutdown index e34d570..166c4f7 100755 --- a/rc.shutdown +++ b/rc.shutdown @@ -45,6 +45,7 @@ done stat_busy "Sending SIGTERM To Processes" run_hook shutdown_prekillall /sbin/killall5 -15 &> /dev/null +run_hook shutdown_postsigterm /bin/sleep 5 stat_done diff --git a/rc.single b/rc.single index e8b6f08..715b80f 100755 --- a/rc.single +++ b/rc.single @@ -31,6 +31,7 @@ if [ "$PREVLEVEL" != "N" ]; then stat_busy "Sending SIGTERM To Processes" run_hook single_prekillall /sbin/killall5 -15 &> /dev/null + run_hook single_postsigterm /bin/sleep 5 stat_done -- 1.7.0