lsc
lsc copied to clipboard
Supervision logs multitasks
In our LSC practices, we realised a multi-tasks synchronization process. We needed to supervise this process, but status log and perl script check_lsc_status don't work with multi-tasks synchronization . So, we add to status logs, informations about taskname and taskmode (changing AbstractSynchronize.java). And we have made a new perl script for multi-tasks status log file analysis.
We think this changes could be integrated in v2.1. What do you think about that ?
Best regards, Florian CAILLET
Thanks for the proposition.
For the moment, I generate several status file by running them separately in cron, for example:
0 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -s user > /var/log/lsc/rh2openldap/syncuser.status 2>&1
5 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -c user > /var/log/lsc/rh2openldap/cleanuser.status 2>&1
10 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -s structure > /var/log/lsc/rh2openldap/syncstructure.status 2>&1
15 * * * * lsc [ -x /usr/bin/lsc ] && /usr/bin/lsc -f /etc/lsc/rh2openldap -t1 -c structure > /var/log/lsc/rh2openldap/cleanstructure.status 2>&1
Set to 2.2 because it changes log format.
@floriancaillet Hello, sorry to come back after so many years. We will apply your code to master branch. Could you merge the new perl script inside the original one? There is no need to hav both.
@davidcoutadeur doc to update for 2.2
@open-ugieiris why did you close this PR?
It has been automatically closed because this repository has been removed.