kanotix.com

Anything goes - How to start Apache on boot?

tuxedo - 26.08.2006, 06:10 Uhr
Titel: How to start Apache on boot?
I guess there is more tha one way doing this but exactly how can I start Apache (or run any system/root command) on system start-up?

The command is apachectl start.

Perhaps the daemon should therefore also be stopped on logout by apachectl stop. Or simply restarted on boot by apachectl restart.

Any tips would be appreciated.
kelmo - 26.08.2006, 06:40 Uhr
Titel: RE: How to start Apache on boot?
Code:
unfreeze-rc.d
apt-get update
apt-get --reinstall install apache2
freeze-rc.d

tuxedo - 26.08.2006, 06:59 Uhr
Titel:
What exactly does unfreeze-rc.d do? I can't find any man page on that command.

I already have Apache/1.3.34 on a stable Kanotix 2005-04 system and it works exactly as it should. I simply need to start it up on boot.
jackiebrown - 26.08.2006, 07:06 Uhr
Titel:
the freeze thing stops new things from starting/stopping during updates/installs
tuxedo - 26.08.2006, 07:18 Uhr
Titel:
Thanks. But does anyone know how do I start Apache on system start up?

Or simply running the command on start up of KDE would be a sufficient workaround.

Does KDE have some kind of here-I-put-my-commands-when-starting file?
h2 - 26.08.2006, 07:32 Uhr
Titel:
if you do exactly what kelmo posted, apache will start as a service on system startup automaticall
jackiebrown - 26.08.2006, 08:07 Uhr
Titel:
/home/username/.kde/Autostart
tuxedo - 26.08.2006, 14:48 Uhr
Titel:
h2 hat folgendes geschrieben::
if you do exactly what kelmo posted, apache will start as a service on system startup automaticall


OK I understand. apache2 is the successor of Apache 1.3x and perhaps apache2 is preconfigured to autostart on system boot. However, I've already installed/configured the earlier version of Apache to specific requirements, and I'm not sure if the config procedure will be the same on apache2, so I'll just add the apachectl start procedure to the ~/.kde/Autostart as an intermediate solution. Thanks for the tip. I will check the apache2 server in time for my next Kanotix install.
arlekin - 26.08.2006, 16:21 Uhr
Titel:
If you need Apache being started at boot time (read: with root privileges), these notes on "pseudo daemons" might be of some use - supposing you're able to adapt my nasty little hack to your own needs Winken
h2 - 26.08.2006, 20:07 Uhr
Titel:
tuxedo, you can also just install sysv-rc-conf, which will bypass the freeze/unfreeze mechanism, and give you direct control over all system services, runlevels they start at, etc. That's what I use, it's very easy to read, and very easy to understand. console app, but lists things in very readable format, and it's very easy to change startup stuff.

Downside is that it stops freeze from working, which means after some dist-upgrades you might have to go in and turn off some new unwanted daemons / services, but it's very easy to do that. Upside is that you know what services are running.

kanotix control center, if I remember right, also has an option to turn off or on services, check that out first.
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007