PID file

Path to a PID file for forking services. This writes PIDFile=.

Use an absolute path to the file written by the daemon after it forks, such as /run/myapp.pid. This helps systemd identify the main process.

For user units, use a path writable by the selected user, typically below the user's runtime directory such as /run/user/UID.