[syslinux] tftpd-hpa and pidfile

Geert Stappers stappers at stappers.nl
Mon May 18 14:09:22 PDT 2009


Op 20090518 om 14:53 schreef Steve Brown:
> On Mon, 18 May 2009, Ferenc Wagner wrote:
>
>> Steve Brown <sbrown7 at umbc.edu> writes:
>>
>>> On Mon, 18 May 2009, Ferenc Wagner wrote:
>>>
>>>> Pascal Legrand <Pascal.Legrand at univ-orleans.fr> writes:
>>>>
>>>>> i've got a problem on lenny with tftpd-hpa
>>>>> When i launch it from /etc/init.d/tftpd-hpa start, there is no pidfile created.
>>>>> what is the way to get it ?
>>>>
>>>> I doubt tftpd-hpa ever creates a pid file.
>>>
>>> That would be the responsibility of the startup script
>>> /etc/init.d/tftpd-hpa -- it's just a shell script.
>>
>> No, the startup script has no reliable means to find out the PID of
>> the newly born daemon.
>
> Not sure if it's RedHat specific, but their /etc/init.d/functions file  
> makes quite a bit of use of the 'pidof' command... the manpage doesn't  
> indicate that it is RH specific.

FWIW: 'pidof' is available in Debian.


Stappers
-- 
$ ps 
  PID TTY          TIME CMD
 2892 pts/4    00:00:00 bash
 3150 pts/4    00:00:00 ps
$ pidof bash
2904 2892 2889 2886 2883 2879
$ pidof init
1




More information about the Syslinux mailing list