http://qa.mandrakesoft.com/show_bug.cgi?id=6034

           Product: initscripts
         Component: initscripts
           Summary: minor bug in function status()
           Product: initscripts
           Version: 7.06-32mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: initscripts
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In /etc/init.d/functions the function named 'status' has a minor bug:

If the process-name and the service-name differ, 'status()' will always report
"is dead, but pid file exists". This is the case even if the service is running
properly and the contetn of the pid file is correct.

This bug reasons in the assumption of 'status()' that servicename and
processname are always the same. If they differ, 'pidof' does not deliver a
value and 'status()' thinks it is not running.

A good reason for processname and servicename differing:
I have a service called 'dauerping' (endless-ping) which just start an endless
ping. The process-name will be just 'ping', which is not quite usefull for
beeing used for 'pidof': 'pidof ping' would deliver a result even if the
'dauerping' of the service is not running -- just because 'ping' is used very often.

The patch enclosed solves this problem: read the pid-file's content and ask 'ps'
about the status of the process.

If requested, I may supply the 'dauerping' service for you to reproduce the
problem on any system.

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to