-   Linux - Newbie (
-   -   login regular but start a server process automatically after reboot (

powah 05-12-2005 10:27 AM

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.

abisko00 05-12-2005 10:35 AM

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').

Matir 05-12-2005 10:35 AM

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.

Poetics 05-12-2005 04:53 PM

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.

jschiwal 05-12-2005 07:14 PM

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.

powah 05-24-2005 07:53 AM

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".

abisko00 05-24-2005 08:21 AM

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

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