mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-06-30 22:18:49 -04:00
Use update-inetd(1) instead of telling admin to edit inetd.conf directly.
This commit is contained in:
parent
805b35f1de
commit
c82f8d2137
10
INSTALL
10
INSTALL
@ -47,12 +47,16 @@ make your access lists.
|
|||||||
Running with traditional inetd superserver
|
Running with traditional inetd superserver
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
If you want to run Gophernicus under the traditional Unix
|
If you want to run Gophernicus under the traditional Unix inetd, the
|
||||||
inetd, add the below line to your /etc/inetd.conf and restart
|
below line shoudl be added to your /etc/inetd.conf and the inetd
|
||||||
the inetd process.
|
process restarted.
|
||||||
|
|
||||||
gopher stream tcp nowait nobody /usr/sbin/in.gophernicus in.gophernicus -h <hostname>
|
gopher stream tcp nowait nobody /usr/sbin/in.gophernicus in.gophernicus -h <hostname>
|
||||||
|
|
||||||
|
The Makefile will automatically do this for you if you have the
|
||||||
|
update(1) script installed, which is the usual case in most current
|
||||||
|
flavors of Linux and BSD.
|
||||||
|
|
||||||
|
|
||||||
Compiling on Debian Linux (and Ubuntu)
|
Compiling on Debian Linux (and Ubuntu)
|
||||||
======================================
|
======================================
|
||||||
|
22
Makefile
22
Makefile
@ -188,18 +188,7 @@ install-root:
|
|||||||
@echo
|
@echo
|
||||||
|
|
||||||
install-inetd: install-files install-docs install-root
|
install-inetd: install-files install-docs install-root
|
||||||
@echo
|
update-inetd --add "gopher stream tcp nowait nobody $(SBINDIR)/$(BINARY) $(BINARY) -h `hostname`"
|
||||||
@echo "======================================================================"
|
|
||||||
@echo
|
|
||||||
@echo "Looks like your system has the traditional internet superserver inetd."
|
|
||||||
@echo "Automatic installations aren't supported, so please add the following"
|
|
||||||
@echo "line to the end of your /etc/inetd.conf and restart or kill -HUP the"
|
|
||||||
@echo "inetd process."
|
|
||||||
@echo
|
|
||||||
@echo "gopher stream tcp nowait nobody $(SBINDIR)/$(BINARY) $(BINARY) -h `hostname`"
|
|
||||||
@echo
|
|
||||||
@echo "======================================================================"
|
|
||||||
@echo
|
|
||||||
|
|
||||||
install-xinetd: install-files install-docs install-root
|
install-xinetd: install-files install-docs install-root
|
||||||
if [ -d "$(XINETD)" -a ! -f "$(XINETD)/$(NAME)" ]; then \
|
if [ -d "$(XINETD)" -a ! -f "$(XINETD)/$(NAME)" ]; then \
|
||||||
@ -265,14 +254,9 @@ uninstall: uninstall-xinetd uninstall-launchd uninstall-systemd
|
|||||||
@echo
|
@echo
|
||||||
|
|
||||||
uninstall-inetd:
|
uninstall-inetd:
|
||||||
if ( -f "$(INETD)" ]; then \
|
if [ -f "$(INETD)" ]; then \
|
||||||
@echo "Please manually delete following line and restart or"
|
update-inetd --remove "^gopher.*gophernicus"
|
||||||
@echo "kill -HUP the inetd process."
|
|
||||||
@echo
|
|
||||||
@echo "
|
|
||||||
@echo "gopher stream tcp nowait nobody $(SBINDIR)/$(BINARY) $(BINARY) -h `hostname`"
|
|
||||||
fi
|
fi
|
||||||
@echo
|
|
||||||
|
|
||||||
uninstall-xinetd:
|
uninstall-xinetd:
|
||||||
if grep -q $(BINARY) "$(XINETD)/gopher" 2>/dev/null; then \
|
if grep -q $(BINARY) "$(XINETD)/gopher" 2>/dev/null; then \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user