Cant auto start a service in ubuntu

Soldato
Joined
7 Apr 2008
Posts
24,970
Location
Lorville - Hurston
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/hardware/apple-iphone/airvideo-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.
 
Back
Top Bottom