SOLVED Incredible PBX on Raspberry Pi Issues After Reboot

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
522
Reaction score
90
Location
Midhurst, ON, Canada
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
15,245
Reaction score
2,670
What's in /etc/rc.local? What are the file's permissions?
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
522
Reaction score
90
Location
Midhurst, ON, Canada
Code:
[email protected]:~# 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
15,245
Reaction score
2,670
Line 7 needs to be commented out. Will push out update.
 

kyle95wm

Phone Genius Owner
Joined
Apr 16, 2016
Messages
522
Reaction score
90
Location
Midhurst, ON, Canada
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

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,455
Messages
138,065
Members
14,620
Latest member
Brads#Bell