Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/01/2002, 19:44
Avatar de lical
lical
Colaborador
 
Fecha de Ingreso: diciembre-2001
Ubicación: $PWD
Mensajes: 1.267
Antigüedad: 22 años, 4 meses
Puntos: 0
Para Ferdy o algún máquina en Linux

Hace unas semanas que compilé Apache y PHP (del segundo modo que se explica en el INSTALL de php4.0.6), y quiero añadir un guión de nivel de ejecución para que Apache arranque en cada inicio del sistema. Bueno, lo que yo hago es lo siguiente (bajo RedHat 7.2):

Voy a /etc/init.d/ y creo un archivo, httpd. Le inserto las siguientes líneas:
#!/bin/sh
#
# apache This is a shell script that takes care of starting and stopping
# the Apache web server.
#
# chkconfig: 345 82 28
# proccess name: httpd
# descrition: Madreeeeeee es el Apache.
start)
# Start daemons.
action "Iniciando Apache: " /www/bin/apachectl start
stop)
# Stop daemons.
action "Deteniendo Apache: " /www/bin/apachectl stop


Después me voy a /etc/init.d/ y hago:
# cd /etc/rc0.d
# ln -s ../init.d/httpd K28httpd
# cd /etc/rc1.d
# ln -s ../init.d/httpd K28httpd
# cd /etc/rc2.d
# ln -s ../init.d/httpd K28httpd
# cd /etc/rc3.d
# ln -s ../init.d/httpd S82httpd
# cd /etc/rc4.d
# ln -s ../init.d/httpd S82httpd
# cd /etc/rc5.d
# ln -s ../init.d/httpd K28httpd


Y ejecuto: # /sbin/chkconfig --add httpd
Y me devuelve: el servicio httpd no soporta chkconfig
¿Qué hago mal? ¿Dónde me equivoco? ¿Cómo tengo que hacerlo?
Muchas gracias por ayudarme de nuevo.
Un saludo. :)

______________
¿Piensas que el software puede ser algo mas?
<a href="http://www.zonasiete.org/" target="_blank">www.zonasiete.org</a>
Acercando el proyecto GNU/Linux a todos.