Running on a fresh CentOS 7 box.
Syncthing is located in /usr/local/bin/syncthing and runs fine manually from the command line.
I’m attempting to run Syncthing as a system service.
Following the instructions here: https://docs.syncthing.net/users/autostart.html#linux
Here’s my ouput:
[root@server bin]# cp syncthing/etc/linux-systemd/system/syncthing@.service /usr/lib/systemd/system
[root@server bin]# systemctl enable syncthing@syncthing.service
Created symlink from /etc/systemd/system/multi-user.target.wants/syncthing@syncthing.service to /usr/lib/systemd/system/syncthing@.service.
[root@server bin]# systemctl start syncthing@syncthing.service
[root@server bin]# systemctl status syncthing@syncthing.service -l
● syncthing@syncthing.service - Syncthing - Open Source Continuous File Synchronization for syncthing
Loaded: loaded (/usr/lib/systemd/system/syncthing@.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2017-04-20 06:17:03 PDT; 8s ago
Docs: man:syncthing(1)
Process: 30813 ExecStart=/usr/bin/syncthing -no-browser -no-restart -logflags=0 (code=exited, status=203/EXEC)
Main PID: 30813 (code=exited, status=203/EXEC)
Apr 20 06:17:03 server.example.com systemd[1]: Unit syncthing@syncthing.service entered failed state.
Apr 20 06:17:03 server.example.com systemd[1]: syncthing@syncthing.service failed.
Apr 20 06:17:03 server.example.com systemd[1]: syncthing@syncthing.service holdoff time over, scheduling restart.
Apr 20 06:17:03 server.example.com systemd[1]: start request repeated too quickly for syncthing@syncthing.service
Apr 20 06:17:03 server.example.com systemd[1]: Failed to start Syncthing - Open Source Continuous File Synchronization for syncthing.
Apr 20 06:17:03 server.example.com systemd[1]: Unit syncthing@syncthing.service entered failed state.
Apr 20 06:17:03 server.example.com systemd[1]: syncthing@syncthing.service failed.
Ideas? Thanks in advance.