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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-12-2005, 09:27 AM
|
#1
|
|
Member
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276
Rep:
|
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.
|
|
|
|
05-12-2005, 09:35 AM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE 12
Posts: 3,511
Rep:
|
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').
|
|
|
|
05-12-2005, 09:35 AM
|
#3
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
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.
|
|
|
|
05-12-2005, 03:53 PM
|
#4
|
|
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,178
Rep:
|
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.
|
|
|
|
05-12-2005, 06:14 PM
|
#5
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
|
05-24-2005, 06:53 AM
|
#6
|
|
Member
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276
Original Poster
Rep:
|
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 06:55 AM.
|
|
|
|
05-24-2005, 07:21 AM
|
#7
|
|
Senior Member
Registered: Mar 2004
Location: Munich
Distribution: SuSE 12
Posts: 3,511
Rep:
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|