pidof killall
Larry Brigman
larry.brigman at gmail.com
Tue Oct 24 22:31:33 UTC 2006
On 10/24/06, Bernhard Fischer <rep.nop at aon.at> wrote:
> On Tue, Oct 24, 2006 at 11:49:33AM -0700, Larry Brigman wrote:
> >It seems that both of these applets don't always work correctly.
> >In version 1.2.1 if
> >you use the start-stop-daemon to run telnetd the pidof will find the
> >pid of the program
> >if you run telnetd from the command line the pidof and also killall
> >won't find the program
> >even though they show up in the ps command.
>
> You'd need to provide the actual commands you used where it didn't work
> for you.
>
> s38:/tmp/busybox# ./telnetd
> s38 login:
> bernhard at s38:/tmp/busybox$ ./busybox pidof telnetd
> 11182
> Login timed out after 60 seconds.
>
> and
>
> s38:/tmp/busybox# PATH=":$PATH" ./telnetd
> s38 login:
> bernhard at s38:/tmp/busybox$ ./busybox pidof telnetd
> 11414
# start-stop-daemon --start --pidfile /var/run/telnetd --exec /usr/sbin/telnetd
# pidof telnetd
656
# killall telnetd
# pidof telnetd
# telnetd
# pidof telnetd
# ps | grep telnetd
668 root 356 S telnetd
675 root 412 S grep telnetd
# killall telnetd
killall: telnetd: no process killed
# ps | grep telnetd
668 root 432 S telnetd
696 root 140 R grep telnetd
#
More information about the busybox
mailing list