Scavenge starts multiple times unless I enable 'clearsession' in scavenge.php.
Here are the start times from my test run. Notice the same timestamps and the multiple 'processed-X' directories created (which are created by the fixlogdir.php call in scavenge.php) Before running scavenge I removed all processed-X directory.
processed_log]# grep -ri "Scavenge: Start" .
./proccessed-1/shell_exec:11:45 Feb/10/2017: Scavenge: Start
./proccessed-2/shell_exec:11:45 Feb/10/2017: Scavenge: Start
./proccessed-3/shell_exec:11:46 Feb/10/2017: Scavenge: Start
./proccessed-4/shell_exec:11:46 Feb/10/2017: Scavenge: Start
I found that if I re-enable clearsession.php, I do not get the multiple runs of scavenge. This is the portion that is being commented out in scavenge.php
/*
// MR -- moving scavenge for backup to cron setting in /etc/cron.d/backup
log_shell("Scavenge: Schedule backups");
passthru("$sgbl->__path_php_path ../bin/common/schedulebackup.php");
log_shell("Scavenge: Clear Sessions");
passthru("$sgbl->__path_php_path ../bin/common/clearsession.php");
log_shell("Scavenge: Self backup");
passthru("$sgbl->__path_php_path ../bin/common/mebackup.php");
*/
which I edited to:
/*
// MR -- moving scavenge for backup to cron setting in /etc/cron.d/backup
log_shell("Scavenge: Schedule backups");
passthru("$sgbl->__path_php_path ../bin/common/schedulebackup.php");
*/
log_shell("Scavenge: Clear Sessions");
passthru("$sgbl->__path_php_path ../bin/common/clearsession.php");
/*
log_shell("Scavenge: Self backup");
passthru("$sgbl->__path_php_path ../bin/common/mebackup.php");
*/
My Kloxo-MR version:
# sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.c-2017020402
- Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
- PHP: php54s-5.4.45-2.w6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: kloxomr7-build.emc.ph
C. Services:
1. MySQL: MariaDB-server-10.0.29-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php56u-cli-5.6.30-1.ius.el6.x86_64
- Multiple:
* php56m-5.6.30-1.ius.el6
- Used: php56m-fpm
- Multiple: enable
3. Web Used: apache
- Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.45-1.el6.x86_64
- Nginx: nginx-1.11.9-1.el6.ngx.x86_64
- Apache: httpd-2.2.31-1.mr.el6.x86_64
- PHP Type: php-fpm_event
- Secondary PHP: on
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: none
- Bind: --uninstalled--
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
- smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- spam: --uninstalled--
7. Stats: awstats
D. Memory:
total used free shared buffers cached
Mem: 31866 852 31014 1 0 398
-/+ buffers/cache: 454 31412
Swap: 0 0 0
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 1.1T 213G 875G 20% /
*** Process Time: 00:00:00:10.10112 (dd:hh:mm:ss:xxxxxx) ***