systemd.service - freedesktop.org
www.freedesktop.org › man › systemdTakes a path referring to the PID file of the service. Usage of this option is recommended for services where Type= is set to forking. The path specified typically points to a file below /run/. If a relative path is specified it is hence prefixed with /run/. The service manager will read the PID of the main process of the service from this file after start-up of the service.
Systemd: Service File Examples - ShellHacks
www.shellhacks.com › systemd-service-file-exampleMar 20, 2018 · I will also show and describe the most important systemd service file options with the live examples of the systemd service files. Create Systemd Service File. Create a systemd service file /etc/systemd/system/foo-daemon.service (replace the foo-daemon with your service name): $ sudo touch /etc/systemd/system/foo-daemon.service $ sudo chmod 664 /etc/systemd/system/foo-daemon.service