From 3ea93f52ee352dab72552f70cb5d6fa0efab5b14 Mon Sep 17 00:00:00 2001 From: Stefan Tatschner Date: Sat, 21 Mar 2015 20:46:14 +0100 Subject: [PATCH] systemd: Set -logflags to 0, provide -no-browser flag Syncthing should not try to start a browser when invoked by systemd. Furthermore we do not need any timestamps in the journal as systemd already handles this for us. --- etc/linux-systemd/system/syncthing@.service | 2 +- etc/linux-systemd/user/syncthing.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/linux-systemd/system/syncthing@.service b/etc/linux-systemd/system/syncthing@.service index a2ec02989..5f87c322c 100644 --- a/etc/linux-systemd/system/syncthing@.service +++ b/etc/linux-systemd/system/syncthing@.service @@ -6,7 +6,7 @@ After=network.target [Service] User=%i Environment=STNORESTART=yes -ExecStart=/usr/bin/syncthing +ExecStart=/usr/bin/syncthing -no-browser -logflags=0 Restart=on-failure RestartPreventExitStatus=1 SuccessExitStatus=2 diff --git a/etc/linux-systemd/user/syncthing.service b/etc/linux-systemd/user/syncthing.service index 705f5f634..676f1653c 100644 --- a/etc/linux-systemd/user/syncthing.service +++ b/etc/linux-systemd/user/syncthing.service @@ -5,7 +5,7 @@ After=network.target [Service] Environment=STNORESTART=yes -ExecStart=/usr/bin/syncthing +ExecStart=/usr/bin/syncthing -no-browser -logflags=0 Restart=on-failure RestartPreventExitStatus=1 SuccessExitStatus=2