Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-15-2006, 05:54 PM   #1
LQ Newbie
Registered: Dec 2005
Posts: 28

Rep: Reputation: 16
Startup Scripts

I am going to be running a game server on a dedicated server I am renting. It is running Debian (Sarge) and I would like to set my server to startup automatically after rebooting the machine. I was told I want to make sure it runs on an unprivaledged user but I am not sure what that means and I have no idea how to set this to startup automatically. Could anybody tell me how I would tell Linux to run /usr/games/ut/launchit upon boot on an unprivaledged user?
Old 01-15-2006, 06:11 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If the username you want to use is games, then put the following in your startup scripts:

su - games -c /usr/games/ut/launchit
I don't know where Debian keeps its startup stuff - have a look for one of the following:

If the game requires specific environment variables you may need to modify /usr/games/ut/launchit or create a wrapper script that sets the variables before launching /usr/games/ut/launchit.
Old 01-15-2006, 10:26 PM   #3
LQ Newbie
Registered: Jan 2006
Location: magelang
Distribution: debian
Posts: 7

Rep: Reputation: 0
Originally Posted by gilead
I don't know where Debian keeps its startup stuff
Debian uses runlevel 2.


U can add script program at /etc/bashrc or xsession (eg /home/user/.xsession) and add your games appliation at the bottom line, remember to add & at the end of command

Last edited by anggoro; 01-15-2006 at 10:30 PM.


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
Mandriva startup scripts (need to add something to startup before X starts) thunderweasel Mandriva 3 01-01-2006 12:55 AM
startup scripts... ValidiusMaximus Linux - Software 8 01-11-2005 05:55 PM
Startup Scripts jhartney Linux - Newbie 3 01-07-2005 01:35 AM
startup scripts doralsoral Linux - Software 6 01-12-2004 03:46 PM
X Startup Scripts JHuizingh Linux - General 1 09-18-2001 01:02 PM > Forums > Linux Forums > Linux - Newbie

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

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