diff --git a/libexec/rc/rc.shutdown b/libexec/rc/rc.shutdown index 0f60ffbad9cc..f8cdade4423a 100644 --- a/libexec/rc/rc.shutdown +++ b/libexec/rc/rc.shutdown @@ -69,12 +69,13 @@ _rcshutdown_watchdog= if [ -n "$rcshutdown_timeout" ]; then debug "Initiating watchdog timer." sleep $rcshutdown_timeout && ( + kill -KILL $$ >/dev/null 2>&1 _msg="$rcshutdown_timeout second watchdog" _msg="$_msg timeout expired. Shutdown terminated." logger -t rc.shutdown "$_msg" + echo echo "$_msg" date - kill -KILL $$ >/dev/null 2>&1 ) & _rcshutdown_watchdog=$! fi