2.29-changes.txt

In "configure" line 12: changed: "ac_default_prefix=/usr/local"	to: "ac_default_prefix=/home/local".

In "Makefile.in" line 116: added: "	-mkdir -p $(DESTDIR)$(MANDIR)/man1".
114	
115	install-man:
116		-mkdir -p $(DESTDIR)$(MANDIR)/man1
117		-mkdir -p $(DESTDIR)$(MANDIR)/man8
118		$(INSTALL) -m 444 -o bin -g bin thttpd.8 $(DESTDIR)$(MANDIR)/man8
119	

	man1 was missing and would cause the make to abort.
	
	If one needs to rerun the install, do:	"make clean" to clear the old data.

******************
	
The idea is to move "thttpd" from "/usr/local/" to "/home/local/" so one hopefully won't loose their whole web site! To change the $PATH, one has to edit the file: "/etc/environment": and add: "/home/local/sbin:/home/local/bin:".
	old: 'PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"'
	new:	'PATH="/home/local/sbin:/home/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"'

******************

man pages will have to be copied from: "/home/local/man/" to: "/usr/local/share/man/"
	cd /home/local/man/
	sudo cp -iav * /usr/local/share/man/
man pages are looked for under "/user/".

******************

Files that are added to: "/etc/" are: "rc.local", and "thttp.sh", then: "/etc/cron.daily/" gets: "thttpd-rotate".

******************

frank@frank-desktop-4B:/etc$ sudo ./rc.local
My IP address is 192.168.19.13 
Starting thttpd. 

 thttpd

frank@frank-desktop-4B:/etc$ ps -e
    PID TTY          TIME CMD
      1 ?        00:00:04 systemd
      2 ?        00:00:00 kthreadd
  ...
   3244 ?        00:00:00 kworker/0:0-events
   3251 pts/1    00:00:00 thttpd_wrapper
   3252 ?        00:00:00 thttpd
   3253 ?        00:00:00 kworker/1:2-events

*****************

frank@frank-desktop-4B:/etc/cron.daily$ 
frank@frank-desktop-4B:/etc/cron.daily$ sudo ./thttpd-rotate
frank@frank-desktop-4B:/etc/cron.daily$ 

"thttpd-rotate" has a sleep 15 seconds, to pick up the new thttpd pid number.
	
****************
 

