LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-04-2005, 05:00 PM   #1
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
Start at Boot - After X, before login.


I'm using slackware 10.2, with xdm, and fluxbox.

I want to start an program, (located in /bin) during boot, after the xserver starts, and before a user logs in.

However, the x server must be running. On boot the system loads lvl 4 (xdm).

I've tried putting the command '/bin/prog' in rc.local, rc.4 and /etc/X11/xdm/Xsession.

Does anyone know how to get this to work?

Thanks,

G.
 
Old 11-04-2005, 06:44 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0/14.1
Posts: 3,477

Rep: Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532Reputation: 532
Possibly placing the command somewhere in /etc/X11/xdm/Xsession might do the trick? Oops, you already tried that! Possibly the location within Xsession makes a difference? Also, is the file you placed in /bin executable? (Been there done that many times. ) Lastly, just a comment, unless the file is part of the normal /bin, methinks the file should be stored in /usr/local/bin.

Last edited by Woodsman; 11-04-2005 at 06:54 PM.
 
Old 11-05-2005, 11:00 AM   #3
Paul7
Member
 
Registered: Aug 2005
Location: Thailand
Distribution: Suse 10.2 / Win XP Home
Posts: 172

Rep: Reputation: 30
write a script with the name as you like. But check other scripts how to use start /stop mybe restart. Copy this script to /etc/init.d
but set the PATH of the instructions like /bin/ls ore a Pathsearch at the beginning of the script. Next step find out your initstate your system starts.
you will find it /etc/inittab
check the line initdefault
the number what you see there is the initstae the system is coming up. Normally it is 5
go now to
/etc/init.d/rc5.d
check for S?? Xseession or whre it is in!
then link your own script to the next higher number if is possible
like "ln /etc/init.d/myscipt /etc/init.d/rc5.d/S15myscript
The same you should do in reverse order with K0?myscript
S means start
K means Kill
I think this will work
 
  


Reply


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto start when login moonloader Slackware 7 08-14-2004 01:53 AM
[help]How to login and start mandrake 10 fallenangelseth Mandriva 7 07-26-2004 01:21 PM
start things on login moschi Linux - Newbie 6 03-27-2004 02:07 AM
How to login as ROOT at start satimis Debian 8 12-15-2003 05:34 AM
start an app upon next login bikergirl Linux - General 6 06-06-2003 02:37 PM


All times are GMT -5. The time now is 08:45 PM.

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