153091f52f
- Removed environment file to keep the service file minimal. "systemctl edit syncthing.service" does the job if somebody wants to customize the service. - Changed "cmdline.target" to "default.target" as "cmdline.target" does not exist in systemd.special: http://www.freedesktop.org/software/systemd/man/systemd.special.html - Added a missing "After=network.target". - Added a documentation hint, thx @jaystrictor |
||
---|---|---|
.. | ||
system | ||
user | ||
README.md |
This directory contains a configuration for running syncthing under the "systemd" service manager on Linux both under either a systemd system service or systemd user service.
-
Install systemd.
-
If you are running this as a system level service:
-
Create the user you will be running the service as (foo in this example).
-
Copy the syncthing@.service files to /etc/systemd/system
-
Enable and start the service systemctl enable syncthing@foo.service systemctl start syncthing@foo.service
-
If you are running this as a user level service:
-
Log in as the user you will be running the service as
-
Copy the syncthing.service files to /etc/systemd/user
-
Enable and start the service systemctl --user enable syncthing.service systemctl --user start syncthing.service
Log output is sent to the journal.