edupersoft
usa Manjaro Linux
Post recolhido
Enviado em 23/11/2008 - 21:34h
Geralmente quando instalamos o apache a partir do cd do slackware é criado o script /etc/rc.d/rc.httpd, basta coloca-lo como executável:
#chmod +x /etc/rc.d/rc.httpd
Caso não tenha sido criado, pelo seu editor preferido crie:
#!/bin/sh
#
# /etc/rc.d/rc.httpd
#
# Start/stop/restart the Apache web server.
#
# To make Apache start automatically at boot, make this
# file executable: chmod 755 /etc/rc.d/rc.httpd
#
case "$1" in
'start')
/usr/sbin/apachectl start ;;
'stop')
/usr/sbin/apachectl stop ;;
'restart')
/usr/sbin/apachectl restart ;;
*)
echo "usage $0 start|stop|restart" ;;
esac
Salve com o nome /etc/rc.d/rc.httpd e coloque como executável.