launcher: Implement the pid file mechanism
Implement the exit script