Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-20002

Cron Job created is incompatible with Debian

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 14, 15
    • Fix Version/s: 14, 15
    • Component/s: FreePBX Framework
    • Labels:
      None
    • Sprint:
      Sprint 5!, Sprint 6!
    • ToDo:
    • Asterisk Version:
      16

      Description

      \+-------------------+-----------++-------------------+
      |Module|Version|Status|License|
      
      +-------------------+-----------++-------------------+
      |announcement|13.0.7.7|Enabled|GPLv3+|
      |asteriskinfo|13.0.7.2|Enabled|GPLv3+|
      |blacklist|14.0.2|Enabled|GPLv3+|
      |builtin| |Enabled| |
      |callforward|14.0.1.3|Enabled|AGPLv3+|
      |callrecording|14.0.15|Enabled|AGPLv3+|
      |callwaiting|14.0.1.1|Enabled|GPLv3+|
      |cdr|14.0.5.19|Enabled|GPLv3+|
      |certman|14.0.4|Enabled|AGPLv3+|
      |conferences|13.0.23.15|Enabled|GPLv3+|
      |configedit|13.0.7.1|Enabled|AGPLv3+|
      |core|14.0.28.11|Enabled|GPLv3+|
      |customappsreg|13.0.5.7|Enabled|GPLv3+|
      |dashboard|14.0.8|Enabled|AGPLv3+|
      |disa|13.0.6.12|Enabled|AGPLv3+|
      |donotdisturb|14.0.1.1|Enabled|GPLv3+|
      |fax|14.0.2.8|Enabled|GPLv3+|
      |featurecodeadmin|13.0.6.4|Enabled|GPLv3+|
      |findmefollow|14.0.1.23|Enabled|GPLv3+|
      |framework|14.0.13.1|Enabled|GPLv2+|
      |hotelwakeup|14.0.1.6|Enabled|GPLv2|
      |iaxsettings|14.0.1.4|Enabled|AGPLv3|
      |infoservices|13.0.1.4|Enabled|GPLv2+|
      |ivr|14.0.9.3|Enabled|GPLv3+|
      |logfiles|13.0.10.5|Disabled|GPLv3+|
      |miscapps|13.0.3.1|Enabled|GPLv3+|
      |miscdests|13.0.7|Enabled|GPLv3+|
      |music|13.0.22.7|Enabled|GPLv3+|
      |outroutemsg|14.0.1|Enabled|GPLv3+|
      |parking|13.0.19.11|Enabled|GPLv3+|
      |recordings|13.0.30.13|Enabled|GPLv3+|
      |ringgroups|14.0.1.9|Enabled|GPLv3+|
      |sipsettings|14.0.27.14|Enabled|AGPLv3+|
      |soundlang|14.0.9|Enabled|GPLv3+|
      |superfecta|14.0.20|Enabled|GPLv2+|
      |userman|14.0.5|Enabled|AGPLv3+|
      |voicemail|14.0.6.7|Enabled|GPLv3+|
      
      +-------------------+-----------++-------------------+
      

      /var/www/html/admin/libraries/BMO/Job.class.php creates the following cron job entry:

      
      * * * * * [ -e /usr/sbin/fwconsole ] && sleep $[RANDOM\%30] && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null
      

      Under Debian, the sleep command is not provided with a valid sleep interval and an error is generated.

      The following works properly under Debian:

      
      * * * * * [ -e /usr/sbin/fwconsole ] && sleep $((RANDOM\%30)) && /usr/sbin/fwconsole job --run --quiet 2>&1 > /dev/null
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kgupta Kapil Gupta
                Reporter:
                reraikes RonR
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.