Restart is not working
Write PID earlier