syncthing/etc/linux-systemd
Stefan Tatschner 153091f52f Some systemd tweaks
- 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
2015-02-12 09:23:12 +01:00
..
system Some systemd tweaks 2015-02-12 09:23:12 +01:00
user Some systemd tweaks 2015-02-12 09:23:12 +01:00
README.md add README 2015-01-05 18:29:13 +08:00

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.

  1. Install systemd.

  2. If you are running this as a system level service:

  3. Create the user you will be running the service as (foo in this example).

  4. Copy the syncthing@.service files to /etc/systemd/system

  5. Enable and start the service systemctl enable syncthing@foo.service systemctl start syncthing@foo.service

  6. If you are running this as a user level service:

  7. Log in as the user you will be running the service as

  8. Copy the syncthing.service files to /etc/systemd/user

  9. Enable and start the service systemctl --user enable syncthing.service systemctl --user start syncthing.service

Log output is sent to the journal.