adapted start-up script + added stop script based on pid file