diff --git a/killproc-2.12.dif b/killproc-2.12.dif index 37f60ac..71b437f 100644 --- a/killproc-2.12.dif +++ b/killproc-2.12.dif @@ -1,4 +1,13 @@ ---- .touch -+++ .touch -@@ -0,0 +1 @@ -+This patch is empty +--- checkproc.c ++++ checkproc.c 2007-03-09 14:05:44.000000000 +0100 +@@ -162,8 +162,8 @@ int main(int argc, char **argv) + if (remember_pids(pid_file,fullname,root,flags) < 0) + exit(LSB_PROOFX); + +- if (!remember && (flags & KILL)) +- exit(LSB_NOPROC); /* New LSB: no pid file is no job */ ++ if (!remember) ++ exit(LSB_STATUS_NOPROC); /* New LSB: no pid file is no job */ + } + /* No pid file means that we have to search in /proc/ */ + free(pid_file); diff --git a/sysvinit.changes b/sysvinit.changes index 32595f4..7c0c36a 100644 --- a/sysvinit.changes +++ b/sysvinit.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 19 13:45:46 CEST 2007 - werner@suse.de + +- Correct exit status of checkproc n case of using a pid file, + thanks to Alessandro Soraruf + ------------------------------------------------------------------- Wed Feb 14 15:53:00 CET 2007 - werner@suse.de diff --git a/sysvinit.spec b/sysvinit.spec index b8c6c5d..8b5380f 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -22,7 +22,7 @@ Group: System/Base PreReq: coreutils Autoreqprov: on Version: 2.86 -Release: 55 +Release: 61 Summary: SysV-Style init BuildRoot: %{_tmppath}/%{name}-%{version}-build Source: sysvinit-2.86.tar.bz2 @@ -279,7 +279,10 @@ rm -rf ${RPM_BUILD_ROOT} %doc %{_mandir}/man8/telinit.8.gz %doc %{_mandir}/man8/startpar.8.gz -%changelog -n sysvinit +%changelog +* Thu Apr 19 2007 - werner@suse.de +- Correct exit status of checkproc n case of using a pid file, + thanks to Alessandro Soraruf * Wed Feb 14 2007 - werner@suse.de - Remove swap supend patch because this is done now by powersave calling hal (bug #241204)