[icecast] how to start liveice with screen?

Jochen Friedrich jochen at scram.de
Thu Dec 26 22:43:26 UTC 2002



Hi Michael,

On Mon, 16 Dec 2002, Michael Renner wrote:

> Moin,
> I installed liveice as well as 'screen' at a debian maschine, both
> applications are running fine. But when I try to start liveice in a 'screen'
> environment then the liveice process ends without an error message:

We did the same and it's working OK here :-)

> Why is 'lame' started with wrong (in fact: with no) parameters?

It's just a test if lame is executable at all. In fact lame is executed
twice by liveice.

> Does anybody start liveice using screen and can give me the command
> line?

If you look carefully at your strace output, you will notice a failing
setpgid() call. This patch worked for me:

--- liveice.c   Mon Feb 21 10:46:11 2000
+++ liveice.c   Sun Dec 15 00:24:20 2002
@@ -166,12 +166,12 @@
        shmat(shmget(IPC_PRIVATE,4096,IPC_EXCL|IPC_CREAT);
        */
        do_config(argc, argv);
-
+#if 0
        if(setpgid(0,0) < 0) {
          perror("setpgid");
          exit(1);
        }
-
+#endif
        /* ok if someone's set frontend=2 then just redirect all our streams*/
        if(g_conf.frontend==FE_NONE){

<p>This is my command line:

#!/bin/bash

USER=`whoami`
CONFIG="/etc/liveice/$USER.cfg"
R="/home/www.scram.fm/mitschnitte/`date +%Y%m%d_%H%M%S`.mp3"

udo /usr/bin/screen /opt/liveice/liveice -F $CONFIG -R $R -V

"-R" is yet another parameter added by me to control the remote dump file.

--- setup.c     Fri Feb 18 17:46:56 2000
+++ setup.c        Sat Dec 14 23:34:16 2002

@@ -728,6 +728,10 @@
                                i++;
                                g_conf.mix_control_file=argv[i];
                                break;
+                       case 'R':
+                               i++;
+                               g_conf.remote_dumpfile=argv[i];
+                               break;
                        case '@':
                                i++;
                                g_conf.frontend=atoi(argv[i]);

Have fun!
--jochen

--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list