[Eisfair_dev] [EIS-1] Probleme mit dem Syslog (Logrotate)

Peter Bäumer peter at baeumer.homeunix.net
Di Jul 10 06:05:08 CEST 2012


Glück Auf! Benjamin,
Ich habe das gleiche Problem mit dem Logrotate beim mini_http, zur 
Problemlösung habe ich das Logrotate Skript angepasst.

var/install/config.d/mini_http.sh:
Zeile 293 - 307
--->
echo "${MINI_HTTPD_LOGFILE} {"
echo "    prerotate"
echo "        ${mini_httpd_start_path}/${module_name} --quiet stop"
echo "    endscript"
echo "    rotate ${MINI_HTTPD_LOG_COUNT}"
echo "    ${MINI_HTTPD_LOG_INTERVAL}"
echo "    compress"
echo "    notifempty"
echo "    create 640 ${u_name} ${g_name}"
echo "    postrotate"
echo "        ${mini_httpd_start_path}/${module_name} --quiet start"
echo "    endscript"
echo "    }"
echo
--->
ändern in:

<---
echo "${MINI_HTTPD_LOGFILE} {"
echo "    rotate ${MINI_HTTPD_LOG_COUNT}"
echo "    ${MINI_HTTPD_LOG_INTERVAL}"
echo "    compress"
echo "    notifempty"
echo "    create 640 ${u_name} ${g_name}"
echo "    postrotate"
echo "        ${mini_httpd_start_path}/${module_name} --quiet restart"
echo "    endscript"
echo "    }"
echo
<---

Ist aber auch nicht der Weisheit letzter Schluss --> Es kommt nur 
weniger häufig vor.

Anscheinend ist die Umstellung des Init-Skripts auf von eislib auf 
function daran schult das sich der mini_http nicht rechtzeitig vor neu 
starten beendet

Am 09.07.2012 16:53, schrieb Benjamin Heide:
> Am 09.07.2012 16:17, schrieb Benjamin Heide:
>> Am 08.07.2012 22:16, schrieb Benjamin Heide:
>>> Hi Jürgen,
> ....
>
> 15448 ?        RN   992:26 /bin/sh /etc/init.d/mini_httpd --quiet stop
>
> cu Benjamin
>
>

MfG Peter Bäumer


Mehr Informationen über die Mailingliste Eisfair_dev