Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | linux autostart question

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

linux autostart question
Reply
 
Thread Tools
Old 15-08-2005, 21:48   #1
dragon
Inactive
 
Join Date: Jan 2004
Posts: 3,898
dragon has reached the bronze age
dragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze age
linux autostart question

can someone tell me how id get the program /home/tss/server_linux to startup when the system boots up

the thing is i want to run as the user TSS rather than root.
dragon is offline   Reply With Quote
Advertisement
Old 15-08-2005, 22:17   #2
Gareth
cf.mega poster
 
Gareth's Avatar
 
Join Date: Dec 2003
Age: 51
Posts: 7,101
Gareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny stars
Gareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny stars
Re: linux autostart question

I'm using Gnome at the moment, so can't check how you'd do it KDE, but you should just be able to do this via Applications > preferences > more preferences > session > startup programs
__________________

...or try editing .bash_profile or .bash_login
Gareth is offline   Reply With Quote
Old 15-08-2005, 22:51   #3
dragon
Inactive
 
Join Date: Jan 2004
Posts: 3,898
dragon has reached the bronze age
dragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze age
Re: linux autostart question

Quote:
Originally Posted by Gareth
I'm using Gnome at the moment, so can't check how you'd do it KDE, but you should just be able to do this via Applications > preferences > more preferences > session > startup programs
__________________

...or try editing .bash_profile or .bash_login

sorry i ment to say its running on a webserver so i need to be able to set it up via the command line.

if i put it in .bash_login wouldnt that still requre the user to login?

what i want it to do is start server_linux (teamspeak) when the server is rebooted but i dont want teamspeak running as root.
__________________

hmm would adding it to the init scripts in the format

sudo -u tss /home/tss/server_linux

work?#
dragon is offline   Reply With Quote
Old 16-08-2005, 01:41   #4
Gareth
cf.mega poster
 
Gareth's Avatar
 
Join Date: Dec 2003
Age: 51
Posts: 7,101
Gareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny stars
Gareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny starsGareth has a pair of shiny stars
Re: linux autostart question

Yeah, in that case scrap those suggestions, cause you would need to log in for both of them to take effect.

As for the init script... I dunno. Sounds a reasonable enough idea to me. I guess you're gonna have to suck it and see.

Post back if it works, cause I'm curious now
Gareth is offline   Reply With Quote
Old 16-08-2005, 08:02   #5
dragon
Inactive
 
Join Date: Jan 2004
Posts: 3,898
dragon has reached the bronze age
dragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze agedragon has reached the bronze age
Re: linux autostart question

added this line to rc.local

/usr/bin/sudo -u tss /home/tss/server_linux

Teamspeak server auto starts on a reboot and is running as the user tss

didn't want want is teamspeak server running with root access and the sudo command seems to have taken care of that little problem
dragon is offline   Reply With Quote
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

Forum Jump


All times are GMT. The time now is 07:32.


Server: lithium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum