Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-05-2002, 06:55 AM   #1
LQ Newbie
Registered: Feb 2002
Posts: 3

Rep: Reputation: 0
X logout kills mpg123


I have on my SuSE 7.2 the mpg123 startet during boot (there are links in /etc/init.d/boot.d/ which start first alsasound and then the mpg123). this works fine so far.

But my problem is that always when a user ends an X session, the mpg123 will be killed. I debugged the Xreset and Xsetup scripts, and I checked, that mpg123 runs during Xreset, but the process is killed when Xsetup runs.

Is there somebody who had the same problem and can perhaps help me?

thanx, feson
Old 02-05-2002, 09:45 AM   #2
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
i would try starting mpg123 in your global startup scripts; /etc/rc.d/rc.local.

everything i startup there works fine in X and when i exit X.
Old 02-05-2002, 02:21 PM   #3
LQ Newbie
Registered: Feb 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Syncrm,

thank you for your fast reply. Sorry I can't try this at the moment, because I'm not at home at my computer. But I don't believe, that this works. I think it is a SuSE specific problem, because the effect is with KDM and XDM under SuSE (I tried it on another box; I startet the mpg123 from a tty, logged in into X, logout => mpg123 is killed :-( ),but does not appear with GNOME under debian...

Old 02-05-2002, 04:27 PM   #4
Registered: Jan 2002
Location: Kansas City
Distribution: RedHat 7.2 Kernel 2.4.17
Posts: 250

Rep: Reputation: 30
A work around may be to add ' mpg123 &' to the end of your $HOME/.xinitrc script.. that away when X is killed, it will reload it into the background.
Old 02-05-2002, 06:50 PM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971Reputation: 1971
nobodys gonna pull me down

i'ev not got any idea why that should be happening, but running mpg123 with nohup *might* help, X is possibl sending out unwanted signals and such.
Old 02-06-2002, 03:38 AM   #6
LQ Newbie
Registered: Feb 2002
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, the workaround with starting mpg123 at the end of the $HOME/.xinitrc does not work. The mpg123 is running when the ~/.Xsession or the ~/.xinitrc is finished. After the execution of xsession, the manpage of xdm says that there will be a Xreset script executed (I found the script in /etc/X11/xdm). i put a pstree > /tmp/test at the and of that script and i see that the mpg123 is still running. Manpage of xdm says there will be a Xsetup executed (after Xreset). So I put the pstree >> /tmp/test at the beginning of the Xsetup. And I see that mpg123 is no longer running. Today I tried it under debian ... and under debian it is working.
so i think, i will have to register my suse and ask suse for support :-(



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Run mpg123: system("mpg123"); How to know what PID it gets? And a Emacs highlightin q kornerr Programming 10 08-06-2005 11:17 AM
User logout from KDE 3.3 kills KDM Yalla-One Slackware 6 06-07-2005 05:34 AM
using mpg123 bucovaina78 Linux - Software 1 11-11-2004 05:09 PM
user logout kills wlan connection Cor_Tauri Linux - Wireless Networking 1 07-22-2004 07:42 PM
mpg123 doralsoral Linux - Software 1 09-07-2003 08:03 PM

All times are GMT -5. The time now is 02:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration