by Zololrajas | 13:13

Pidofproc

checkproc [-v] [-L] [-k] [-p pid_file] [-c root] [-z] /full/path/to/executable checkproc [-v ] [-k] [-n] name_of_kernel_thread pidofproc [-k] basename_of_executable. The start_daemon, killproc and pidofproc functions shall use the following algorithm for determining the status and the process identifiers of the specified. The commands are unlikely to be portable. Actually this is first time I hear about them - but I guess your problem is to work with process by the.

Manual page for pidofproc. SYNOPSIS checkproc [-vLkNz] [-p pid_file] [-i ingnore_file] [-c root] /full/path/to/executable checkproc -n [-vk] name_of_kernel_thread. else # The PID file contains the needed PIDs # Note that by LSB requirement, the path must be given to pidofproc, # however, it is not used by the current. I played with pidofproc and this seems to work properly. I don't know if it would integrate into your functions without any changes. I don't tend to.

looks like you want. $ yum install redhat-lsb. though I'm not sure why it seems to pull in *so many* dependencies it does pull in. man pidofproc howto config documentation configuration. The start_daemon, killproc and pidofproc functions shall use this algorithm for determining the status and the pid(s) of the specified program. They shall read the. On 05/16/ AM, Robert Yang wrote: > Add pidofproc to ${sysconfdir}/ init.d/functions, this is used for > getting the pid of the process.