Hi Ryan

On Jan 14, 2011, at 10:08 AM, Ryan Evans wrote:

> I noticed that this runs daily in the cron, it seems to remove the directory 
> /var/spool/sogo every day, and if sogo ever needs to be restarted it baulks 
> and says no /var/spool/sogo directory and we have to create it....  is it 
> normal for this directory to be removed?
> contents of sogo-tmpwatch:
> #!/bin/sh
> 
> SOGOSPOOL=/var/spool/sogo
> 
> /usr/sbin/tmpwatch 24 "$SOGOSPOOL"
> find "$SOGOSPOOL" -type d -empty -exec /bin/rmdir -p {} \; 2> /dev/null

This was fixed a few days ago. The script now looks like this :

#!/bin/sh

SOGOSPOOL=/var/spool/sogo

/usr/sbin/tmpwatch 24 "$SOGOSPOOL"
find "$SOGOSPOOL" -depth -mindepth 1 -type d -empty -exec /bin/rmdir {} \; 2> 
/dev/null


Francis

--
flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to