Hello,
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.
Manual start and stop Syncthing
Re: Manual start and stop Syncthing
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.
Hence:
systemctl stop syncthing
...
systemctl start syncthing
or
systemctl restart syncthing
Hence:
systemctl stop syncthing
...
systemctl start syncthing
or
systemctl restart syncthing