From b8559542d990d82e4dafdd50d46d0db230c1087c Mon Sep 17 00:00:00 2001 From: Mehdi Sadeghi Date: Wed, 1 Sep 2021 09:44:21 +0200 Subject: Add Syncthing's user unit. --- .config/systemd/user/syncthing@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .config/systemd/user/syncthing@.service (limited to '.config') diff --git a/.config/systemd/user/syncthing@.service b/.config/systemd/user/syncthing@.service new file mode 100644 index 0000000..1de4274 --- /dev/null +++ b/.config/systemd/user/syncthing@.service @@ -0,0 +1,14 @@ +[Unit] +Description=Syncthing - Open Source Continuous File Synchronization for %I +Documentation=man:syncthing(1) +After=network.target + +[Service] +User=%i +ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 +Restart=on-failure +SuccessExitStatus=3 4 +RestartForceExitStatus=3 4 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3