syncthing daemon
I decided to set up a daemon to automatically start synthing heres how
sudo vim /etc/systemd/system/syncthing.service
use the whoami command if you don't know your username. and add it to this syncthing.service file
[Unit]
Description=Syncthing - Open Source Continuous File Synchronization
After=network.target
[Service]
User=
ExecStart=/usr/bin/syncthing -no-browser -gui-address="http://127.0.0.1:8384"
Restart=on-failure
RestartSec=10
ExecStartPre=/bin/sleep 5
[Install]
WantedBy=multi-user.target
reload systemd to read new service file
sudo systemctl daemon-reload
start syncthing service and enable it to start on boot:
sudo systemctl start syncthing
sudo systemctl enable syncthing
now syncthing should be running as a daemon on your linux system. you can use commands like 'sudo systemctl start/stop/restart/status syncthing'
No comments:
Post a Comment