Manual start and stop Syncthing

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
Posts: 1
Joined: Sun Dec 08, 2019 3:58 pm

Manual start and stop Syncthing

Post by ciro »


I am thinking to save little bit server during work time 6 am up to the 17pm to stop Syncthing. Now I am disable Syncthing on the boot.
And any idea how to put dietpi-services start syncthing and dietpi-services start syncthing in the cron job, are welcome?

Best regards Ciro.
User avatar
Site Admin
Posts: 3370
Joined: Sat Nov 18, 2017 6:21 pm

Re: Manual start and stop Syncthing

Post by MichaIng »

dietpi-services start <service> is more something meant to be used from console and within our scripts, to have consistent output and error handling. To start/stop/control services in cron jobs, I would use systemctl start/stop <service> directly to avoid overhead and color codes in outputs.

systemctl stop syncthing
systemctl start syncthing
systemctl restart syncthing
Post Reply