Fixes to sunwell and minor improvements

This commit is contained in:
omer
2024-04-15 15:50:41 +02:00
parent 87a4da5882
commit 79ca60d136
46 changed files with 1507 additions and 716 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ NGX_PREFIX=
NGX_SBIN_PATH=
NGX_CONF_PREFIX=
NGX_CONF_PATH=
NGX_ERROR_LOG_PATH=
NGX_ERROR_LOG_PATH=/app/hm_log/hm_web_nginx_$(date +"%Y%m%d_%H%M%S").log
NGX_PID_PATH=
NGX_LOCK_PATH=
NGX_USER=
+2 -2
View File
@@ -1090,7 +1090,7 @@ objs/nginx.8: man/nginx.8 objs/ngx_auto_config.h
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
-e "s|%%ERROR_LOG_PATH%%|/app/hm_log/hm_web_nginx_20240301_103609.log|" \
< man/nginx.8 > $@
install: objs/nginx
@@ -1130,4 +1130,4 @@ install: objs/nginx
test -d '$(DESTDIR)/usr/local/nginx/html' || cp -R html '$(DESTDIR)/usr/local/nginx'
test -d '$(DESTDIR)/usr/local/nginx/logs' || mkdir -p '$(DESTDIR)/usr/local/nginx/logs'
test -d '$(DESTDIR)/app/hm_log' || mkdir -p '$(DESTDIR)/app/hm_log'
+5 -5
View File
@@ -159,7 +159,7 @@ cc -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -o objs/autotest objs/autotest.c
----------------------------------------
checking for crypt()
/tmp/ccBjPW1g.o: In function `main':
/tmp/cci6t9qL.o: In function `main':
autotest.c:(.text+0xf): undefined reference to `crypt'
collect2: error: ld returned 1 exit status
----------
@@ -273,7 +273,7 @@ checking for statvfs()
----------------------------------------
checking for dlopen()
/tmp/ccRfQzDW.o: In function `main':
/tmp/ccfAmoHn.o: In function `main':
autotest.c:(.text+0xf): undefined reference to `dlopen'
collect2: error: ld returned 1 exit status
----------
@@ -436,7 +436,7 @@ objs/autotest.c: In function 'main':
objs/autotest.c:7:5: warning: implicit declaration of function 'setproctitle' [-Wimplicit-function-declaration]
setproctitle("test");;
^
/tmp/ccjBplGI.o: In function `main':
/tmp/ccwcVzVd.o: In function `main':
autotest.c:(.text+0xf): undefined reference to `setproctitle'
collect2: error: ld returned 1 exit status
----------
@@ -465,7 +465,7 @@ checking for pwrite()
----------------------------------------
checking for sys_nerr
/tmp/ccWsrzXf.o: In function `main':
/tmp/ccvM3t1L.o: In function `main':
autotest.c:(.text+0x6): warning: `sys_nerr' is deprecated; use `strerror' or `strerror_r' instead
135
----------------------------------------
@@ -495,7 +495,7 @@ checking for System V shared memory
----------------------------------------
checking for POSIX semaphores
/tmp/cc19ydxX.o: In function `main':
/tmp/ccZ1aKO6.o: In function `main':
autotest.c:(.text+0x29): undefined reference to `sem_init'
autotest.c:(.text+0x41): undefined reference to `sem_destroy'
collect2: error: ld returned 1 exit status
Binary file not shown.
+1 -1
View File
@@ -166,7 +166,7 @@ Contains the process ID of
The contents of this file are not sensitive, so it can be world-readable.
.It Pa /usr/local/nginx/conf/nginx.conf
The main configuration file.
.It Pa /usr/local/nginx/logs/error.log
.It Pa /app/hm_log/hm_web_nginx_20240301_103609.log
Error log file.
.El
.Sh EXIT STATUS
+1 -1
View File
@@ -384,7 +384,7 @@
#ifndef NGX_ERROR_LOG_PATH
#define NGX_ERROR_LOG_PATH "logs/error.log"
#define NGX_ERROR_LOG_PATH "/app/hm_log/hm_web_nginx_20240301_103609.log"
#endif