Results 1 to 5 of 5

Thread: Cant auto start a service in ubuntu

  1. #1
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    Cant auto start a service in ubuntu

    Hi, i have an ipad and installed a app called AirVideo and also instealled the server for it.

    It is a application that allows you to stream content from your home server.

    using these instructions http://wiki.birth-online.de/know-how...o-server-linux

    I got the server installed and working as long as I launch the server manually. I followed the directions to add it as a service but it never launches as I can't connect the client when I try running it as a service.

    I have the .jar and .properties in /usr/local/bin/AirVideoServer

    Code:
        start on runlevel [2345]
        stop on shutdown
        respawn
        
        exec sudo -H -n -u jonney /usr/local/bin/java -jar /usr/local/bin/AirVideoServer/AirVideoServerLinux.jar /usr/local/bin/AirVideoServer/test.properties
    I run the following:

    Code:
    sudo start airvideo
        airvideo start/running, process 5444
    And I'm told that the client can't connect to the server, if I run java -jar AirVideoServerLinux.jar test.properties in the /usr/local/bin/AirVideoServer directory it works fine.

    I'm sure it's obvious but I'm missing it.

  2. #2
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts

    Re: Cant auto start a service in ubuntu

    so you know the service is started and running as you've just verified it locally on the same machine.

    but the client can't connect on the ipad......firewall ? wrong port ? etc.

    The client is started as you've already proven, so that's not the issue.
    It is Inevitable.....


  3. Received thanks from:

    j.o.s.h.1408 (06-11-2012)

  4. #3
    The late but legendary peterb - Onward and Upward peterb's Avatar
    Join Date
    Aug 2005
    Location
    Looking down & checking on swearing
    Posts
    19,378
    Thanks
    2,892
    Thanked
    3,403 times in 2,693 posts

    Re: Cant auto start a service in ubuntu

    Don't know if you have solved this, but have you checked the firewall settings on the server?. You may need to open some ports to sllow connection.

    Air video requires port 45631 to be open for tcp.

    http://www.inmethod.com/air-video/co...-problems.html
    (\__/)
    (='.'=)
    (")_(")

    Been helped or just 'Like' a post? Use the Thanks button!
    My broadband speed - 750 Meganibbles/minute

  5. #4
    Registered+
    Join Date
    Nov 2012
    Posts
    28
    Thanks
    0
    Thanked
    1 time in 1 post

    Re: Cant auto start a service in ubuntu

    a useful way to check the firewall is just telnet to that port or netcat. You can do it locally too - just use the machines ip address, not localhost or 127.0.0.1

  6. #5
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    Re: Cant auto start a service in ubuntu

    Hiya, yea it works! cant remember how i got it working! i think it was my firewall that was the issue

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •