Summary: | killproc() should return an error status if finds nothing to kill | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | imz <vanyaz> |
Component: | initscripts | Assignee: | Dmitry V. Levin <ldv> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | ||
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
imz
2003-03-23 21:17:22 MSK
Addition: message refined (not to log a reload failure as a shutdown failure): --- /etc/init.d/functions.orig 2003-03-23 01:51:54 +0300 +++ /etc/init.d/functions 2003-03-24 00:06:37 +0300 @@ -238,7 +238,12 @@ fi fi else - failure \"$base shutdown\" + if [ \"$notset\" = \"1\" ]; then + failure \"$base shutdown\" + else + failure \"$base $killlevel\" + fi + RC=1 fi # Remove pid file if any. Addition: message refined (not to log a reload failure as a shutdown failure): --- /etc/init.d/functions.orig 2003-03-23 01:51:54 +0300 +++ /etc/init.d/functions 2003-03-24 00:06:37 +0300 @@ -238,7 +238,12 @@ fi fi else - failure \"$base shutdown\" + if [ \"$notset\" = \"1\" ]; then + failure \"$base shutdown\" + else + failure \"$base $killlevel\" + fi + RC=1 fi # Remove pid file if any. Thanks, fixed in 5.49-ipl54mdk Thanks, fixed in 5.49-ipl54mdk |