LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-16-2004, 09:48 AM   #1
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Rep: Reputation: 15
startup script under X + RH


I'm having problems on a seemingly simple issue. I want to kick off a script on autologon at runlevel 5.

The autologon is taken care of and not an issue at this point.

I don't want to start a daemon in the background so rc.local and rc5.d aren't that useful to me, so that leaves ~/.xinitrc script.

I'm running RH 3.0 Enterprise.

I have it in the user's home directory and I have the user owning it and the permissions are 777 (just in case).

I have "#!/bin/bash" at the top.

The same works for suse, but it's not working for RH (except I didn't need #!/bin/bash)

Any thoughts?
 
Old 06-16-2004, 02:46 PM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Normally, ~/.xinitrc is only used when starting the X server by issuing "startx". If using a display manager ("graphical login"), try ~/.xsession

Some distro's don't take this difference seriously...
 
Old 06-16-2004, 05:48 PM   #3
mehesque
Member
 
Registered: Oct 2003
Location: TX
Distribution: RH 8.0
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks for your help, that led me in the right direction!!

The way that the .xsession file works is that window manager must be final thing to execute.

So I just made a script chaining a lot of commands together and had that execute before the WM.
 
  


Reply



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
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
startup script rockwell_001 Linux - General 4 04-21-2005 04:22 PM
startup script ... again. Vindane Linux - Wireless Networking 2 03-04-2005 02:57 AM
Script at startup rohde Linux - Newbie 2 09-12-2004 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:10 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration