diff options
author | Guenter Knauf <fuankg@apache.org> | 2009-07-06 18:22:49 +0200 |
---|---|---|
committer | Guenter Knauf <fuankg@apache.org> | 2009-07-06 18:22:49 +0200 |
commit | 7c6ad1685b0d7827178c1c42fcd5d8fa8267ba68 (patch) | |
tree | 6a0f8334ea9bf2f2aefed20b96e46784fb6919e5 | |
parent | fixed NetWare build includes. (diff) | |
download | apache2-7c6ad1685b0d7827178c1c42fcd5d8fa8267ba68.tar.xz apache2-7c6ad1685b0d7827178c1c42fcd5d8fa8267ba68.zip |
added start/stop scripts to installation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@791533 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | NWGNUmakefile | 4 | ||||
-rw-r--r-- | build/NWGNUscripts.inc | 35 |
2 files changed, 38 insertions, 1 deletions
diff --git a/NWGNUmakefile b/NWGNUmakefile index 326c09fc34..9a1b3c500a 100644 --- a/NWGNUmakefile +++ b/NWGNUmakefile @@ -329,7 +329,7 @@ nlms :: libs $(TARGET_nlm) # Updated this target to create necessary directories and copy files to the # correct place. (See $(AP_WORK)\build\NWGNUhead.inc for examples) # -install :: nlms FORCE +install :: nlms instscripts FORCE -copy $(OBJDIR)\Apache2.nlm $(INSTALL)\$(BASEDIR)\*.* -copy ABOUT_APACHE $(INSTALL)\$(BASEDIR)\*.* -copy README $(INSTALL)\$(BASEDIR)\*.* @@ -394,4 +394,6 @@ vpath %.c modules/core:os/netware:server/mpm/netware:$(PCRESDK) include $(AP_WORK)\build\NWGNUtail.inc +include $(AP_WORK)\build\NWGNUscripts.inc + diff --git a/build/NWGNUscripts.inc b/build/NWGNUscripts.inc new file mode 100644 index 0000000000..1149076a86 --- /dev/null +++ b/build/NWGNUscripts.inc @@ -0,0 +1,35 @@ +# Include for creating start/stop/restart NCF scripts.
+
+instscripts:: FORCE $(INSTALL)/$(BASEDIR)/ap2start.ncf $(INSTALL)/$(BASEDIR)/ap2rest.ncf $(INSTALL)/$(BASEDIR)/ap2stop.ncf $(INSTALL)/$(BASEDIR)/ap2prod.ncf
+
+$(INSTALL)/$(BASEDIR)/ap2start.ncf:
+ @echo # NCF to start Apache 2.x in own address space > $@
+ @echo # Make sure that httpstk isn't listening on 80 >> $@
+ @echo # httpcloseport 80 /silent >> $@
+ @echo # search add SYS:/$(BASEDIR) >> $@
+ @echo load address space = $(BASEDIR) SYS:/$(BASEDIR)/apache2 >> $@
+ @echo # If you have problems with 3rd-party modules try to load in OS space. >> $@
+ @echo # load $(BASEDIR)/apache2 >> $@
+ @echo. >> $@
+
+$(INSTALL)/$(BASEDIR)/ap2rest.ncf:
+ @echo # NCF to restart Apache 2.x in own address space > $@
+ @echo apache2 restart -p $(BASEDIR) >> $@
+ @echo # If you have loaded Apache2.x in OS space use the line below. >> $@
+ @echo # apache2 restart >> $@
+ @echo. >> $@
+
+$(INSTALL)/$(BASEDIR)/ap2stop.ncf:
+ @echo # NCF to stop Apache 2.x in own address space > $@
+ @echo apache2 shutdown -p $(BASEDIR) >> $@
+ @echo # If you have loaded Apache2.x in OS space use the line below. >> $@
+ @echo # apache2 shutdown >> $@
+ @echo. >> $@
+
+$(INSTALL)/$(BASEDIR)/ap2prod.ncf:
+ @echo # NCF to create a product record for Apache 2.x in product database > $@
+ @echo PRODSYNC DEL APACHE$(VERSION_MAJMIN) >> $@
+ @echo PRODSYNC ADD APACHE$(VERSION_MAJMIN) ProductRecord "$(VERSION_STR)" "Apache $(VERSION_STR) Webserver" >> $@
+ @echo. >> $@
+
+
|