SOLVED Incredible PBX on Raspberry Pi Issues After Reboot

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
So I have a Raspberry Pi 3 running Incredible with all the latest updates. Every time my Pi reboots, I have to not only restart the fwconsole, but also restart iptables. It seems to me that nothing in rc.local is being run. Even left the Pi for a few minutes and asterisk was still down. What's the problem?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
What's in /etc/rc.local? What are the file's permissions?
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
Code:
root@incrediblepbx:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "/usr/local/sbin/iptables-restart
exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
  printf "My IP address is %s\n" "$_IP"
fi

/etc/init.d/mysql restart
sleep 30
/usr/local/sbin/fwconsole restart
sleep 7
/usr/local/sbin/iptables-restart
exit 0
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Line 7 needs to be commented out. Will push out update.
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
520
Reaction score
90
That seems to have fixed it. I can confirm that this was an isssue on a new build as well. Recommend pushing an update to systems.
 

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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.
Top