create pid file in order to kill the process easily