ADD Change the way the PID is determined

Change how the PID is detemined in the service file.
Change permissions of the conf folder.