Steamcast 0.9.75-beta on Linux Debian 4.10 - config files

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
polemon
Posts: 7
Joined: Tue Jan 15, 2008 7:58 pm

Steamcast 0.9.75-beta on Linux Debian 4.10 - config files

Post by polemon »

Hi.

I'm trying to run Steamcast on my Debian server.
The READEME.txt states, that steamcast takes a parameter from command line, where a config file can be specified.

I tried this, but I get the following error:

Code: Select all

uhweb28103 /usr/local/bin # ll /usr/local/etc/steamcast.conf
-rw-r--r-- 1 root staff 879 2008-01-13 02:23 /usr/local/etc/steamcast.conf
uhweb28103 /usr/local/bin # ./steamcast /usr/local/etc/steamcast.conf
/**************************************************/
/** Steamcast Distributed Network Multimedia Server/0.9.75 beta (Linux)
/** Written by: Jay Krivanek
/** 
/** NOTE:Use of this program indicates that you
/** have agreed to the license contained in the
/** README.txt file.
/**************************************************/

Event Log:
<01/16/2008@03:02:43> [serv] WARNING: ./steamcast.conf could not be loaded
As you can see, I tried specifying the config file at the command line, but the Steamcast seems not to be able to find it.

However, when I go to the directory where the steamcast.conf is, and start Steamcast from there, It reads the file:

Code: Select all

uhweb28103 /usr/local/etc # steamcast
/**************************************************/
/** Steamcast Distributed Network Multimedia Server/0.9.75 beta (Linux)
/** Written by: Jay Krivanek
/** 
/** NOTE:Use of this program indicates that you
/** have agreed to the license contained in the
/** README.txt file.
/**************************************************/

Event Log:
<01/16/2008@03:04:56> [serv] Configuration loaded from steamcast.conf
It seems as if Steamcast ignores the command line parameter completely, and only looks around in the directory, where it is started from.

This is, however, particulary troublesome, since I'd like to start steamcast from an init script. I can chdir into the /usr/local/etc directory first, and execute steamcast from there, but this is not the way this should actually work, IMO.

Is this a bug, or am I doing something wrong?

Please help.

--polemon
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

the proper command is

Code: Select all

uhweb28103 /usr/local/bin # ./steamcast -c /usr/local/etc/steamcast.conf
- Jay
polemon
Posts: 7
Joined: Tue Jan 15, 2008 7:58 pm

Post by polemon »

Jay wrote:the proper command is

Code: Select all

uhweb28103 /usr/local/bin # ./steamcast -c /usr/local/etc/steamcast.conf
Thanks for your fast reply and for moving this thread to the proper forum.
I tried your suggestion, and it works, but why does the README.txt tell me this:

Code: Select all

Starting Steamcast
==================
Steamcast can be start in two ways.  You can simply open or execute
the steamcast executable located in the installation directory.  This will
start steamcast up and have it load it's configuration from a default location.
This location is from the current directory you are located in it or by reference.
It will look for steamcast.conf to pull in it's configuration values.  If no
configuation file is found it assumes defaults.

You can also start steamcast in a console environment and add the location of the
configuration file as a parameter.  (i.e. ./steamcast steamcast.conf)  Steamcast
will look for the file through the location and name provided here.  If no
configuration file is found it assumes defaults. [...]
Maybe you should change the README.txt...
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

Yea that is the old way. It just hadn't been updated to reflect the change.
- Jay
Post Reply