Cmd Line Works, init script doesn't. Interface != eth0
Following instructions I've found on this forum, I did the screen thing and ran
Everything works.
When I try to run as a daemon it doesn't.
I took your suggestion from another forum and my /etc/sysconfig/fop2 looks like:
And it doesn't start up. Where do I go from here?
Note: I disabled FOP (1) from amportal.conf etc.
service fop2 stop
cd /usr/local/fop2
screen
./fop2_server -X 511 -i venet0 <--- Notice custom interface
ctrl-a d
Everything works.
root@asdf:/etc/asterisk $ pgrep fop2_server
1578
root@asdf::/etc/asterisk $ netstat -lnp | grep 444
tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 1578/./fop2_server
When I try to run as a daemon it doesn't.
I took your suggestion from another forum and my /etc/sysconfig/fop2 looks like:
OPTIONS="-d -i venet0"
And it doesn't start up. Where do I go from here?
Note: I disabled FOP (1) from amportal.conf etc.
Comments
Also, what linux distro are you using? The init script config file is different depending on your distribution, on centos redhat is /etc/sysconfig/fop2 and in debian/ubuntu is /etc/default/fop2
Best regards,
For reference, I'm using the latest as of 12/22/2012. I believe it's 2.26
The distro is centos. It's a PIAF purple install.