Added option to daemon script to set pidfile.