add pid file and stop.sh