Add method to get pid file of running service. Only chmod existing paths.