[opensuse] Start http at boot time
Hi there, I have a problem with the initialization at boot time of my http daemon. I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl The S10httpd is dinamically link to the apachectl. The problem is that it doesn't start the http daemon when I do a restart of the Linux box. Any help would be apretiated. I have: Linux Suse 10.1 BR Joaquin -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joaquin Henriquez (MI/EEM) wrote:
Hi there,
I have a problem with the initialization at boot time of my http daemon.
I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl The S10httpd is dinamically link to the apachectl.
The problem is that it doesn't start the http daemon when I do a restart of the Linux box.
Well, of course it doesn't. Init script is started with argument start and I doubt that apachectl recognizes that argument. I suggest to use real init script, you can get it from apache in your distro and edit some paths to suit your config. Tosuja -- Petr "Tosuja" Klíma Mail: tosuja@tosuja.info Web: www.tosuja.info ICQ: 52057532 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
I have a problem with the initialization at boot time of my http daemon.
I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl The S10httpd is dinamically link to the apachectl.
The problem is that it doesn't start the http daemon when I do a restart of the Linux box.
Well, of course it doesn't.
Init script is started with argument start and I doubt that apachectl recognizes that argument. I suggest to use real init script, you can get it from apache in your distro and edit some paths to suit your config.
Actually the apachectl command recognize the start because it is started as "apachectl start". Even if I do a "./S10httpd start" the daemon will start. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joaquin Henriquez (MI/EEM) wrote:
I have a problem with the initialization at boot time of my http daemon. I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl The S10httpd is dinamically link to the apachectl.
The problem is that it doesn't start the http daemon when I do a restart of the Linux box. Well, of course it doesn't.
Init script is started with argument start and I doubt that apachectl recognizes that argument. I suggest to use real init script, you can get it from apache in your distro and edit some paths to suit your config.
Actually the apachectl command recognize the start because it is started as "apachectl start". Even if I do a "./S10httpd start" the daemon will start.
Is there are reason for not using the SuSE supplied Apache load and configuration scripts? If there is not, setup apache to load either by... YaST --> system --> system services (run level) or chkconfig it will probably save a lot of trouble. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGSrofasN0sSnLmgIRAk7uAKCUrczurdnDriuJ3bXGBIsiHEH0kQCgrXoC U0EJUAMoffJGMvsNbNmCWR8= =M6B4 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joaquin Henriquez (MI/EEM) wrote:
Hi there,
I have a problem with the initialization at boot time of my http daemon.
I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl
do an ls -l of /etc/init.d/rc5.d and tell us how you violated the pattern. (Hint, the http start/stop script is in the same directory as all of the OTHER start/stop scripts. cd /etc/init.d/rc5.d ln -s ../apache S10apache Make sure you put a K__apache file in your rc5.d directory, too!
The S10httpd is dinamically link to the apachectl.
The problem is that it doesn't start the http daemon when I do a restart of the Linux box.
Any help would be apretiated.
I have: Linux Suse 10.1
BR
Joaquin
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2007-05-16 at 09:15 +0200, Joaquin Henriquez (MI/EEM) wrote:
I have a problem with the initialization at boot time of my http daemon.
I put on the: /etc/init.d/rc5.d/S10httpd -> /opt/http-2.2.4/bin/apachectl The S10httpd is dinamically link to the apachectl.
I suppose you mean "symbolically linked".
The problem is that it doesn't start the http daemon when I do a restart of the Linux box.
Typical... if you tamper manually with those links on a suse system it is very easy that they don't work, because you are not following the "suse boot/init style". :-P Hint 1: /etc/init.d/.depend.* et family. Hint 2: read the suse documentation (the admin book), chapter "The SuSE boot concept". Or at least, "man init.d". Hint 3: use "chkconfig service_name" - after reading the above and making sure your script complies. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGS67BtTMYHG2NR9URAm3DAJ0ZLNPjB+rwgJYAqml6pfn1JLA8pwCfYnsv pE284rz+OHSQw4EKyA874ho= =Wrp7 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Aaron Kulkis
-
Carlos E. R.
-
G T Smith
-
Joaquin Henriquez (MI/EEM)
-
Petr Klíma