diff --git a/build/NWGNUscripts.inc b/build/NWGNUscripts.inc index 6fb57c5b15..01809624c3 100644 --- a/build/NWGNUscripts.inc +++ b/build/NWGNUscripts.inc @@ -1,6 +1,6 @@ # Include for creating start/stop/restart NCF scripts. -instscripts:: FORCE $(INSTALL)/$(BASEDIR)/ap2start.ncf $(INSTALL)/$(BASEDIR)/ap2rest.ncf $(INSTALL)/$(BASEDIR)/ap2stop.ncf +instscripts:: FORCE $(INSTALL)/$(BASEDIR)/ap2start.ncf $(INSTALL)/$(BASEDIR)/ap2auto.ncf $(INSTALL)/$(BASEDIR)/ap2rest.ncf $(INSTALL)/$(BASEDIR)/ap2stop.ncf $(INSTALL)/$(BASEDIR)/ap2start.ncf: @echo # NCF to start Apache 2.x in own address space > $@ @@ -12,6 +12,15 @@ $(INSTALL)/$(BASEDIR)/ap2start.ncf: @echo # load SYS:/$(BASEDIR)/apache2 >> $@ @echo. >> $@ +$(INSTALL)/$(BASEDIR)/ap2auto.ncf: + @echo # NCF to start Apache 2.x in own address space > $@ + @echo # and let automatically restart in case it crashes >> $@ + @echo # Make sure that httpstk isn't listening on 80 >> $@ + @echo # httpcloseport 80 /silent >> $@ + @echo # search add SYS:/$(BASEDIR) >> $@ + @echo restart address space = $(BASEDIR) SYS:/$(BASEDIR)/apache2 >> $@ + @echo. >> $@ + $(INSTALL)/$(BASEDIR)/ap2rest.ncf: @echo # NCF to restart Apache 2.x in own address space > $@ @echo apache2 restart -p $(BASEDIR) >> $@