Revert "Don't launch cron jobs when systemd is running"

This reverts commit e77e2c1261.
This commit is contained in:
Xavier Guimard 2019-06-11 15:08:00 +02:00
parent 77490381d0
commit c69044f0ed
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,4 @@
#
# Regular cron jobs for the Lemonldap::NG handler
# Launched only if systemd isn't running
# Regular cron jobs for LemonLDAP::NG Handler
#
17-59/30 * * * * www-data [ -d /run/systemd/system ] || [ ! -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] || /usr/share/lemonldap-ng/bin/purgeLocalCache
17-59/30 * * * * www-data [ -x /usr/share/lemonldap-ng/bin/purgeLocalCache ] && /usr/share/lemonldap-ng/bin/purgeLocalCache

View File

@ -1,5 +1,4 @@
#
# Regular cron jobs to clean Lemonldap::NG sessions DB
# Launched only if systemd isn't running
# Regular cron jobs for LemonLDAP::NG Portal
#
7 * * * * www-data [ -d /run/systemd/system ] || [ ! -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] || /usr/share/lemonldap-ng/bin/purgeCentralCache
7 * * * * www-data [ -x /usr/share/lemonldap-ng/bin/purgeCentralCache ] && /usr/share/lemonldap-ng/bin/purgeCentralCache