Skip to content

Working with Systemd units

Jeff Stafford edited this page Sep 19, 2022 · 2 revisions

Documentation links

Systemd service file syntax: https://www.freedesktop.org/software/systemd/man/systemd.service.html#

Systemd escape codes: https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Specifiers

Using systemctl edit to edit the onedriver unit file

You can overwrite specific fields of the onedriver systemd service with systemctl edit --user [email protected] - an example of overriding the launch command is shown below (the first ExecStart= is required to override the existing setting):

[Service]
ExecStart=
ExecStart=/usr/bin/onedriver -c "/media/data/onedriver/%i" %f