Syncovery CL - Scheduler

No more questions - please go to www.syncovery.com/forum instead

Moderator: SuperFlexible Administrators

Syncovery CL - Scheduler

Postby UncleSam on Mon Feb 22, 2016 6:41 pm

Hi,

I try to use Syncovery on my Linux server. Using cronjobs it works very well but I have no idea how to use the scheduler.

In your description you wrote it could be started using "./SyncoveryCL &" which is correct if you start it in the current user session. But I want to let the server start syncovery on bott using /etc/init.d/ script.

I tried tmux, screen and directly using "./SyncoverCL &" to be executed in a script. Everytime it tries to start but freezes at the line "23:37:22 Initiating interprocess communication as server".

Is there any documentation how to use the service? e.g. how to configure it using a startup script?

Yours
Stefan
UncleSam
 
Posts: 6
Joined: Sun Jun 28, 2015 6:18 am

Re: Syncovery CL - Scheduler

Postby superflexible on Tue Feb 23, 2016 2:30 am

Hello,
it depends very much on the Linux distro. I think you have to start it later in the boot process if it doesn't work where you put it.

But cronjobs are surely better.

I haven't tried launching the scheduler at boot time myself yet.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm

Re: Syncovery CL - Scheduler

Postby UncleSam on Tue Feb 23, 2016 11:12 am

Hello,

it is not depending on boot sequence. I created a new /etc/init.d script and executed it at runtime but it was not possible to ger the scheduler running.

I am switching now to cronjobs but if you want to check if it is a software fault or an os fault (it is a quick and dirty test - so please do not blame me about the paths :D ):
Code: Select all
#! /bin/sh
### BEGIN INIT INFO
# Provides:          syncovery start stop restart
# Required-Start:
# Required-Stop:
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: seafile cloud service
# Description:       Starts/stops syncovery scheduler
### END INIT INFO
# Author: Stefan Ruepp

# Aktionen
case "$1" in
    start)
        /root/syncovery/SyncoveryCL >> /var/log/syncovery.log 2>> /var/log/syncovery.log &
        ;;
    debug)
        /root/syncovery/SyncoveryCL /TGCP >> /var/log/syncovery.log 2>> /var/log/syncovery.log &
        ;;
    stop)
        /root/syncovery/SyncoveryCL /STOPTIMER
        ;;
    status)
        /root/syncovery/SyncoveryCL /STATUS
        ;;
    restart)
        /etc/init.d/syncovery stop
        sleep 5
        /etc/init.d/syncovery start
        ;;
esac

exit 0


You can put it anywhere and try it by executing it with param "start" or "stop". e.g. ./syncovery start
UncleSam
 
Posts: 6
Joined: Sun Jun 28, 2015 6:18 am

Re: Syncovery CL - Scheduler

Postby alexmaurer on Tue Feb 23, 2016 3:48 pm

If I can be helpful, try the following command to start Syncovery scheduler :

Code: Select all
start-stop-daemon --start --quiet --background --pidfile /var/run/syncovery.pid --make-pidfile --stdout /var/log/syncovery.log --stderr /var/log/syncovery.err --exec SyncoveryCL


And the following command to stop :

Code: Select all
start-stop-daemon --stop --pidfile /var/run/syncovery.pid


You should see SyncoveryCL running

Code: Select all
ps ax | grep SyncoveryCL


and SyncoveryCL /STATUS must return something like that

22:45:54 Communication established
22:45:54 Waiting a bit more
22:45:54 Scheduler is running. Using config file /root/.Syncovery/Syncovery.cfg
alexmaurer
 
Posts: 4
Joined: Wed Jan 13, 2016 2:49 am
Location: Switzerland

Re: Syncovery CL - Scheduler

Postby UncleSam on Wed Feb 24, 2016 3:26 am

Thank you very much for your informatione. I switched now to cronjobs. As soon as I have time I am going to test your solution.
UncleSam
 
Posts: 6
Joined: Sun Jun 28, 2015 6:18 am

Re: Syncovery CL - Scheduler

Postby superflexible on Fri Apr 07, 2017 5:18 pm

Thanks for all this info. I am working on creating a Debian installation package with such scripts now.

I believe the latest Linux version fixes possible hangs like the one you originally mentioned.
User avatar
superflexible
Site Admin
 
Posts: 2478
Joined: Thu Dec 31, 2009 3:08 pm


Return to Linux Support

cron