Install an apache.sh startup file in /usr/local/etc/rc.d/

Now that apache_httpd is gone from /etc/sysconfig, this is the canonical
way to make apache start automatically in a new system installation.
This commit is contained in:
Jordan K. Hubbard 1996-06-15 16:58:09 +00:00
parent 96316e5acd
commit b2106dae6f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3225
17 changed files with 79 additions and 9 deletions

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data

View File

@ -3,7 +3,7 @@
# Date created: Fri Aug 25 16:42:36 CDT 1995
# Whom: erich@rrnet.com
#
# $Id: Makefile,v 1.10 1996/05/19 22:21:42 ache Exp $
# $Id: Makefile,v 1.11 1996/05/20 07:37:06 asami Exp $
#
DISTNAME= apache_1.0.5
@ -20,4 +20,10 @@ EXTRACT_ONLY= ${DISTNAME}.tar.gz
post-extract:
cp ${DISTDIR}/mod_env.c ${WRKSRC}/src
post-install:
@echo "Installing ${PREFIX}/etc/rc.d/apache.sh startup file."
@echo "#!/bin/sh" > ${PREFIX}/etc/rc.d/apache.sh
@echo "[ -x /usr/local/sbin/httpd ] && /usr/local/sbin/httpd && echo -n ' httpd'" >> ${PREFIX}/etc/rc.d/apache.sh
@chmod 751 ${PREFIX}/etc/rc.d/apache.sh
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
etc/rc.d/apache.sh
@unexec rm %D/etc/rc.d/apache.sh
sbin/httpd
www/cgi-bin
www/data