Hello

Am 23.09.2015 um 18:25 schrieb Zhang Huangbin:
> 
> I always have issue with running 2 cron tasks every minute, hope you guys can 
> help me out.
> 
> According to SOGo installation guide, we need 2 cron jobs:
> 
> 1) Session cleanup - runs every minute
> 
> * * * * *     /usr/sbin/sogo-tool expire-sessions 60
> 
> 2) Email alarms - runs every minutes
> 
> * * * * *     /usr/sbin/sogo-ealarms-notify
> 
> The issues are:
> 
> 1) Failed to create lock directory
> 
> 2015-07-01 10:58:02.534 sogo-tool[27443] Failed to create lock directory 
> '/var/lib/sogo/GNUstep/Defaults/.lck/.GNUstepDefaults.lck' - 
> /var/lib/sogo/GNUstep/Defaults/.lck/.GNUstepDefaults.lck
> and
> 
> 2015-07-01 10:56:01.468 sogo-ealarms-notify[27401] Failed to create lock 
> directory '/var/lib/sogo/GNUstep/Defaults/.lck/.GNUstepDefaults.lck'
> 
> 2) broken lock file
> 
> 2015-09-23 05:51:01.450 sogo-ealarms-notify[27790] Warning ... someone broke 
> our lock (/var/lib/sogo/GNUstep/Defaults/.lck/.GNUstepDefaults.lck) ... and 
> may have interfered with updating defaults data in file.
> 
> Did i setup the cron jobs improperly? Any idea? Any help is greatly 
> appreciated. :)
> 

No, you did it right.
This is a known problem, but harmless, as the lock is not really needed
here.
The work around is to use one cron entry only for both, like this:
* * * * *     /usr/sbin/sogo-tool expire-sessions
60;/usr/sbin/sogo-ealarms-notify


Kind regards,
Christian Mack

-- 
Christian Mack
Universität Konstanz
Kommunikations-, Informations-, Medienzentrum (KIM)
Abteilung Basisdienste
78457 Konstanz
+49 7531 88-4416

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to