LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-17-2006, 07:59 AM   #1
AZaraT
LQ Newbie
 
Registered: Jun 2006
Posts: 16

Rep: Reputation: 0
[Suse linux 10.1]boot.local help


Hey there

I know i have been posting before, about this but never really got the answer so i'll try again (yes sorry)

So I wonna make a game server startup on boot, so i need to write the script in boot.local (in /etc/init.d/boot.local). Okay so the server is located in my home folder hlds/hlds_l/hlds_run so what do i need to write in the boot.local script..?

Another thing, when do the boot.local script run? does it run after you logged the user in, or just after the other things in the boot proccess?

Hope someone can help
AzaraT
 
Old 08-17-2006, 09:03 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
There is no need to use boot.local. Just put a symlink in /etc/init.d/rcX.d, where X is your runlevel. In default Suse installations it's 5 If you don't know what it is, run:
Code:
cat /etc/inittab |grep initdefault
Then (for example to make the server start at runlevel 5), run:
Code:
ln -s /path/to/hlds/hlds_l/hlds_run /etc/init.d/rc5.d/starthlds
Of course you can create a script and put it in /etc/init.d/rcX.d to start/stop the server on system startup/shutdown
 
Old 08-17-2006, 09:29 AM   #3
AZaraT
LQ Newbie
 
Registered: Jun 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Okay thanks mate but just a question the what is the path ? the hlds/hlds_l/hlds_run is in my home folder, but i quess i need to write that as well so will home/username/hlds/hlds_l/hlds_run work or do i need to add more in the start ?
 
Old 08-17-2006, 01:46 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You have to use the absolute path to the executable. Sice it run from home dir, use:
Code:
ln -s /home/username/hlds/hlds_l/hlds_run /etc/init.d/rc5.d/starthlds
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10 - Samba - Windows/Linux can't browse local network MadCowDzz SUSE / openSUSE 26 07-09-2008 11:19 AM
SUSE 10 Fail to reboot on initial install, hang on boot.local derrickhackman SUSE / openSUSE 6 12-09-2005 05:42 PM
WindowsXP duel boot with SuSe Linux, SuSe linux not booting? x32825 Linux - Newbie 4 10-12-2004 04:26 PM
boot.local failed (suse 9.1) Big Money Linux - Software 10 08-06-2004 09:59 PM
Stop Suse boot.local in Grub crazibri Linux - Newbie 25 07-02-2004 08:21 AM

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

All times are GMT -5. The time now is 12:55 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