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 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

  • 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_server
    


    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.
Sign In or Register to comment.