LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 05-12-2005, 10:27 AM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
login regular but start a server process automatically after reboot


How to start a server process, authorized only for root, automatically after reboot but I login as a regular user?
i.e. After reboot, I login as a regular user, the server process (e.g. Apache) have been started.
My linux is SuSE 9.0.
 
Old 05-12-2005, 10:35 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
I am not sure what you mean by 'after reboot'. You can activate a runlevel script for apache, so it will be started on every boot, even if you login as normal user. This is quite easy with the YaST Runlevel Editor (in 'System').
 
Old 05-12-2005, 10:35 AM   #3
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
I'm not quite sure which style of init scripts Suse uses, but generally, there are scripts in /etc/init.d or /etc/rc.d that control what is run at startup.
 
Old 05-12-2005, 04:53 PM   #4
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Generally there's a script (in the directories that Matir mentioned) that is for "your commands" or somesuch (in Slackware it.s /etc/rc.d/rc.local) -- these are extra commands, processes, et cetera, that you need on boot.

Before anyone logs in these commands/scripts/et cetera will be initialized.
 
Old 05-12-2005, 07:14 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
You can activate the service to start up on boot through YaST. Yast -> System -> Runlevel Editor

SuSE also uses the chkconfig program. You may need to run the SuSEconfig program if you make manual changes to a configuration file.

After enabling the Apache2 server, you may be prompted to change the firewall configuration. There you can decide whether you want to allow access from the internet, or only computers on your local network.
 
Old 05-24-2005, 07:53 AM   #6
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
The service I want to start is the lampp apache distribution which require "root" permission to start.

#su

#/opt/lampp/lampp start

# ps -ef
/opt/lampp/bin/httpd -k start -DSSL -DPHP4
...

I use Yast Runlevel editor but do not see any " lampp" or "httpd".

Last edited by powah; 05-24-2005 at 07:55 AM.
 
Old 05-24-2005, 08:21 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Try to copy the script /opt/lampp/lampp to /etc/init.d. It shoud then appear in the runlevel editor.
 
  


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
Start a server automatically? timmyk0 Linux - General 8 06-24-2006 03:58 AM
Mandrake Control Centre tries to start automatically everytime I login pwilkie Mandriva 3 02-27-2005 03:26 AM
Gnome failed to start automatically on reboot moacirponti Red Hat 0 09-08-2004 05:00 PM
Automatically start a game server when system boots Kahless Linux - Software 6 08-01-2004 02:23 AM
how to start automatically apache server when boot-up? eye Linux - Software 7 10-28-2003 02:22 PM


All times are GMT -5. The time now is 07:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration