Latest LQ Deal: Latest LQ Deals
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 05-12-2005, 09:27 AM   #1
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, 09:35 AM   #2
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

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, 09:35 AM   #3
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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, 03:53 PM   #4
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, 06:14 PM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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, 06:53 AM   #6
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.


#/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 06:55 AM.
Old 05-24-2005, 07:21 AM   #7
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,513

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


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

All times are GMT -5. The time now is 03:45 PM.

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