LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2005, 04:52 PM   #1
w3dwebhost
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora
Posts: 8

Rep: Reputation: 0
Exclamation setting up a startup program


i finally got my game server working. but i have to start the server through remote shell and when i get off my computer it logs off the remote shell shutting down the server, so i asked my friend how i could make it so the server starts up when root logs on, but he forgot the name of the config file so just asking how i can add the server to start up on boot or at logon
 
Old 03-14-2005, 04:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Just stick it in your rc.local ... that way root doesn't
need to login at all ...



Cheers,
Tink
 
Old 03-14-2005, 07:16 PM   #3
w3dwebhost
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
i did that, and it caused some other programs to fail and it only started the first server.
 
Old 03-14-2005, 07:42 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
What server are you running, what failed?
And you may have to use fully qualified path's
when running things from rc.local.


Cheers,
Tink
 
Old 03-14-2005, 07:59 PM   #5
w3dwebhost
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
nvm, i got it working i forgot a & at the end of one of the lines thanks for the help... ALOT =D
 
Old 03-14-2005, 09:39 PM   #6
w3dwebhost
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
never mind again, it boots up the servers but i get a timestamp error in the client and it stops other programs from booting, would it be better to setup a cron job to run a script that starts them if they arent started?

the server im using is eathena ragnarok server, and i think it is doing this because the server when it starts in remote shell, it doesnt exit back to command line after it starts, it just sits there and gives you server status...

Last edited by w3dwebhost; 03-14-2005 at 09:41 PM.
 
Old 03-14-2005, 10:02 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You could try detaching it with a nohup or in a screen-session....
e.g. rc.local
/usr/bin/screen -a </path/to/daemon>



Cheers,
Tink
 
Old 03-14-2005, 10:03 PM   #8
w3dwebhost
LQ Newbie
 
Registered: Mar 2005
Distribution: Fedora
Posts: 8

Original Poster
Rep: Reputation: 0
ill try that but my server just crashed :'( waiting for datacenter to reboot
 
  


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
Add Program to startup Shadow2982 Linux - Newbie 1 02-27-2005 05:48 PM
getting a program to startup Cyric Slackware 4 10-23-2004 06:50 AM
fluxbox startup program thebover Slackware 8 09-04-2004 12:10 PM
Loading a program at startup? vincebs Linux - Software 5 04-19-2004 10:52 AM
X Startup Program ryanstrayer Linux - General 1 01-29-2002 03:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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