User Tools

Site Tools


systemd

This is an old revision of the document!


Minimal example script

/etc/systemd/system/osrm.service

[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

Enable service

sudo systemctl enable osrm.service 

Debug service

sudo systemd-analyze verify my.service

Full docs.

systemd.1547041799.txt.gz · Last modified: 2019/01/09 14:49 by mantis