waiting for agent start

But this script doesn't create pid file? Agent does this? Or I'm wrong?