浏览代码

add README

Peter Hoeg 10 年之前
父节点
当前提交
b9817ac6b4
共有 3 个文件被更改,包括 27 次插入0 次删除
  1. 27 0
      etc/linux-systemd/README.md
  2. 0 0
      etc/linux-systemd/system/[email protected]
  3. 0 0
      etc/linux-systemd/user/syncthing.service

+ 27 - 0
etc/linux-systemd/README.md

@@ -0,0 +1,27 @@
+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:
+
+   1. Create the user you will be running the service as (foo in this example).
+
+   2. Copy the [email protected] files to /etc/systemd/system
+
+   3. Enable and start the service
+      systemctl enable [email protected]
+      systemctl start [email protected]
+
+ 3. If you are running this as a user level service:
+
+   1. Log in as the user you will be running the service as
+
+   2. Copy the syncthing.service files to /etc/systemd/user
+
+   3. Enable and start the service
+      systemctl --user enable syncthing.service
+      systemctl --user start syncthing.service
+
+Log output is sent to the journal.

+ 0 - 0
etc/systemd/system/[email protected] → etc/linux-systemd/system/[email protected]


+ 0 - 0
etc/systemd/user/syncthing.service → etc/linux-systemd/user/syncthing.service