User Tools

Site Tools


systemd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
systemd [2019/01/09 14:42]
mantis created
systemd [2019/01/10 11:53] (current)
mantis
Line 1: Line 1:
 +====== Minimal example script ======
 +
 +
 +/​etc/​systemd/​system/​osrm.service
 +
 +<code bash>
 +[Unit]
 +Description=OSRM
 +
 +
 +[Service]
 +ExecStart=/​usr/​local/​bin/​osrm-routed --algorithm=ch ​ --max-table-size=1000 /​data/​osrm/​latest.osrm ​
 +WorkingDirectory=/​home/​osrm
 +User=osrm
 +Group=osrm
 +
 +[Install]
 +WantedBy=multi-user.target
 +</​code>​
 +
 +===== Enable service =====
 +
 +
 +<code bash>
 +sudo systemctl enable osrm.service ​
 +</​code>​
 +
 +===== Debug service =====
 +
 +
 +<code bash>
 sudo systemd-analyze verify my.service sudo systemd-analyze verify my.service
 +</​code>​
 +
 +[[http://​example.com|Full docs]].
systemd.1547041368.txt.gz ยท Last modified: 2019/01/09 14:42 by mantis