http://bugzilla.novell.com/show_bug.cgi?id=899218 Bug ID: 899218 Summary: thttpd misc fixes Classification: openSUSE Product: openSUSE Factory Version: 13.2 Beta 1 Hardware: All OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network Assignee: bnc-team-screening@forge.provo.novell.com Reporter: marcosfrm@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Fix pidfile path and charset description (in 2.26 it has changed to UTF-8). ***************************** --- thttpd.conf.orig 2007-06-11 06:10:04.000000000 -0300 +++ thttpd.conf 2014-09-30 09:50:57.431587630 -0300 @@ -51,12 +51,12 @@ # Log-file; empty = use syslog(), /dev/null = without log. (-l) logfile=/var/log/thttpd.log -# File to write the process-id to (can be used for signalling -# thttpd (-i) -pidfile=/var/run/thttpd.pid +# File to write the process-id to (-i), can be used for signalling +# thttpd +pidfile=/run/thttpd.pid # Character set to use with text MIME types. -# Defaults to iso-8859-1 (-t) +# Defaults to UTF-8 (-t) #charset= # P3P server privacy header is returned with all responses ***************************** Since openSUSE's default thttpd config sets logfile=/var/log/thttpd.log, let's provide a logrotate snippet. thttpd.logrotate /var/log/thttpd.log { compress dateext maxage 365 rotate 99 size=+4096k notifempty missingok copytruncate } These settings were borrowed from Apache. We use copytruncate because thttpd by default chroot() into dir= (/srv/www/htdocs) and cannot reopen the log from there. ***************************** --- thttpd.spec.orig 2014-09-29 13:32:28.402436429 -0300 +++ thttpd.spec 2014-09-30 12:18:06.098299824 -0300 @@ -31,6 +31,7 @@ Source: %{name}-%{version}.tar.gz Source1: %{name}-SuSE.tar.bz2 Source2: %{name}.service +Source3: %{name}.logrotate Patch0: %{name}-2.25b-configure.patch Patch1: %{name}-2.25b-dirs.patch Patch2: %{name}-2.25b-time_h.patch @@ -59,6 +60,7 @@ Requires(post): %fillup_prereq Requires(post): %insserv_prereq %endif +Recommends: logrotate %description Thttpd is a very compact no-frills httpd serving daemon that can handle @@ -115,9 +117,11 @@ %{buildroot}%{_sbindir} \ %{buildroot}%{_mandir}/man1 \ %{buildroot}%{_mandir}/man8 \ - %{buildroot}%{serverroot}/htdocs/users + %{buildroot}%{serverroot}/htdocs/users \ + %{buildroot}%{_sysconfdir}/logrotate.d make DESTDIR=%{buildroot} install %{?_smp_mflags} cp -a SuSE/* %{buildroot} +install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} rm -f %{buildroot}%{serverroot}/htdocs/index.html %if %{with_systemd} rm -rf %{buildroot}%{_sysconfdir}/init.d @@ -178,5 +182,6 @@ %config %{_initddir}/thttpd %endif %config(noreplace) %{_sysconfdir}/thttpd.conf +%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %changelog ***************************** But I am not sure if it should recommend or require logrotate. Apache requires it, lighttpd recommends it... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=899218
--- Comment #1 from Marcos Mello
http://bugzilla.novell.com/show_bug.cgi?id=899218
--- Comment #3 from Marcos Mello
http://bugzilla.novell.com/show_bug.cgi?id=899218
Stephan Kulow
http://bugzilla.novell.com/show_bug.cgi?id=899218
http://bugzilla.novell.com/show_bug.cgi?id=899218#c10
--- Comment #10 from Marcos Mello
http://bugzilla.novell.com/show_bug.cgi?id=899218
http://bugzilla.novell.com/show_bug.cgi?id=899218#c12
--- Comment #12 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com