User Tools

Site Tools


systemd

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.txt · Last modified: 2019/01/10 11:53 by mantis