login regular but start a server process automatically after reboot
Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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').
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.