SBC on Debian 8 - How to delay service start?

Discussion in '3CX Phone System - General' started by AndyC3PO, Sep 27, 2017.

Thread Status:
Not open for further replies.
  1. AndyC3PO

    Joined:
    Apr 3, 2017
    Messages:
    2
    Likes Received:
    0
    Hi Guys,

    We're running SBC on Debian 8 with a hosted Google Cloud 3CX environment. We are having an issue with phones taking a significantly long time to register with the 3CX after rebooting the SBC. This issue is worked around by restarting the SBC service on the SBC device, but obviously, this is not a solution.

    We have previously experienced the same issue with a Raspberry Pi, and were able to resolve it by delaying the service from starting up at network. This was easy to accomplish by using the raspbian config tool. Not being Linux gurus I'm hoping there's some other people out there who have experienced this issue and resolved it, and which config files to modify and how?
     
  2. StefanW

    StefanW Head of Customer Support and Training
    Staff Member 3CX Support

    Joined:
    Jun 2, 2009
    Messages:
    1,199
    Likes Received:
    79
    see if this works for you (on your own risk)

    run:

    nano /lib/systemd/system/3CXPhoneSystem01.service

    [Service]
    Type=notify
    NotifyAccess=main
    ExecStartPre=/bin/sleep 60
    ExecStart=/usr/sbin/3CXPhoneSystem -p /var/run/phonesystem/3CXPhoneSystem01.pid /var/lib/3cxpbx/Instance1/Bin/3CXPhoneSystem.ini
    ExecStopPost=/bin/rm -f /var/run/phonesystem/3CXPhoneSystem01.pid
    TimeoutStopSec=60
    User=phonesystem
    StandardOutput=null
    LimitCORE=2147483648
    WorkingDirectory=/var/lib/3cxpbx
    LimitNOFILE=4096

    save

    run: systemctl daemon-reload
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.