Cmd Line Works, init script doesn't. Interface != eth0
-
Following instructions I've found on this forum, I did the screen thing and ran
service fop2 stop cd /usr/local/fop2 screen ./fop2_server -X 511 -i venet0 <--- Notice custom interface ctrl-a dEverything 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_serverWhen 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.
-
What fop2 version are you using? only the last version reads the OPTIONS varialble from init option files..
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,
-
Figured out my issue... I wasn't being patient enough after calling the service start before checking to see if port 4445 was bound yet.
root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ service fop2 start Starting Flash Operator Panel 2: daemon /usr/local/fop2/fop2_server -d -i venet0 <--- added this echo for debug [ OK ] root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 <--- ~500ms between each root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 root@host:/etc/rc.d/init.d $ netstat -lnp | grep 444 tcp 0 0 0.0.0.0:4445 0.0.0.0:* LISTEN 13623/fop2_serverFor 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login