Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Cmd Line Works, init script doesn't. Interface != eth0

Cmd Line Works, init script doesn't. Interface != eth0

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 70 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    B
    blak3r
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      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,

      1 Reply Last reply
      0
      • B
        B
        blak3r
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0

        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
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups