• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

SBC on Debian 8 - How to delay service start?

Status
Not open for further replies.

AndyC3PO

Platinum Partner
Basic Certified
Joined
Apr 3, 2017
Messages
3
Reaction score
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?
 
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
 
Status
Not open for further replies.

Getting Started - Admin

Latest Posts

Members Online Now

Forum statistics

Threads
141,622
Messages
748,860
Members
144,737
Latest member
damiano giannini
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.