Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 21:45:50

Author Topic: Scavenge runs multiple times  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

Offline tochits

  • Junior Member
  • *
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Scavenge runs multiple times
« on: 2017-02-10, 05:26:21 »
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.

Code: [Select]
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

Code: [Select]
/*
        // 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:
Code: [Select]
/*
        // 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:
Code: [Select]
# 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) ***

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Scavenge runs multiple times
« Reply #1 on: 2017-02-10, 05:47:27 »
Thanks. Update in next upload.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.035 seconds with 19 queries.

web stats analysis