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.

Forum statistics

Threads
111,875
Messages
589,515
Members
164,724
Latest member
StratisFear