summaryrefslogtreecommitdiff
path: root/build/NWGNUscripts.inc
diff options
context:
space:
mode:
Diffstat (limited to 'build/NWGNUscripts.inc')
-rw-r--r--build/NWGNUscripts.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/build/NWGNUscripts.inc b/build/NWGNUscripts.inc
new file mode 100644
index 00000000..1149076a
--- /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. >> $@
+
+