LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2004, 04:25 AM   #1
reddog64
Member
 
Registered: Apr 2004
Posts: 34

Rep: Reputation: 15
Autostarting a file on startup?


I want to start "vncserver" on startup/reboot/crash-reboot on my linux redhat box...
also i'd like to make it so this line starts as well
"./hlds_run -game cstrike +maxplayers 18 +map de_dust -pingbooster 1"

where would i put these commands?

like a windows "startup" folder i guess??? only for RedHat 9

-Aaron
 
Old 04-19-2004, 06:47 AM   #2
renegl
LQ Newbie
 
Registered: Apr 2004
Location: denmark
Posts: 6

Rep: Reputation: 0
take a look at:

/etc/rc.d/rc.local
 
Old 04-19-2004, 09:08 PM   #3
reddog64
Member
 
Registered: Apr 2004
Posts: 34

Original Poster
Rep: Reputation: 15
Ok so lets say i have this directory...

(as appears in the browser window)

/usr/steam/hlds_1

i want to execute the command "hlds_run -game cstrike +maxplayers 18 +map de_dust +ip 2.2.2.2 -pingboost 1 &"

how will i put it in there?
do i use "exec" ?


do i need all the " / " before "usr"
this is what i put in there...

exec /usr/steam/hlds_1/hlds_run -game cstrike +maxplayers 18 +map de_dust +ip 2.2.2.2 -pingboost 1 -autoupdate &

also to start vncserver...

exec vncserver ???
 
  


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
autostarting but from where? evil_empire Fedora 5 03-31-2005 01:51 PM
Apache not autostarting Atrocity *BSD 8 12-08-2004 02:58 PM
autostarting XWindows Jeebizz Slackware 7 08-30-2004 10:36 PM
Autostarting an app MikeMcCarty Linux - Newbie 4 06-30-2003 05:20 PM
Autostarting apps concoran Linux - Newbie 1 07-29-2002 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:08 AM.

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