Opened 12 years ago

Closed 12 years ago

#144 closed incident (invalid)

/var/log/thttpd.log is not rotated

Reported by: rick Owned by:
Keywords: Cc:
Location: Generiek

Description

On Leytherode and Cope was no SIGHUP sent to thttpd. Sending it manually did instead cause the process to rotate it's logs:

CNodeCope# grep thttpd /etc/newsyslog.conf 
/var/log/thttpd.log			644  3     100  *     J /var/run/thttpd.pid 1

My guess is a wrong signal identifier at the end. The 1 does not need to be there (SIGHUP by default).

Will keep a look at it.

Change History (5)

comment:1 by rick, 12 years ago

In 10288/proxy:

Default newsyslog.conf file needed, to bebug issue with beheerr#144

comment:2 by rick, 12 years ago

In 10289/proxy:

Allow rotating of tinyproxy logfiles.

Related-To: beheer#144

comment:3 by richardvm, 12 years ago

iets uitgebreidere man page van thttpd

http://www.acme.com/software/thttpd/thttpd_man.html

werkt wel perfect SIGHUP:

CNodeStadhuis# ls -ltr /var/log/thttpd.log*
-rw-r--r-- 1 root wheel 5115 Mar 28 08:00 /var/log/thttpd.log.3.bz2
-rw-r--r-- 1 root wheel 4774 Mar 28 11:00 /var/log/thttpd.log.2.bz2
-rw-r--r-- 1 root wheel 4950 Mar 28 13:00 /var/log/thttpd.log.1.bz2
-rw-r--r-- 1 root wheel 4146 Mar 28 18:00 /var/log/thttpd.log.0.bz2
-rw-r--r-- 1 root wheel 91705 Mar 29 08:44 /var/log/thttpd.log

Richard

comment:4 by richardvm, 12 years ago

CNodeCope# ls -l /var/log/thttpd.log*
-rw-r--r-- 1 root wheel 68818 Mar 29 11:11 /var/log/thttpd.log
-rw-r--r-- 1 root wheel 4129 Mar 28 07:00 /var/log/thttpd.log.0.bz2
-rw-r--r-- 1 root wheel 4149 Mar 27 19:00 /var/log/thttpd.log.1.bz2
-rw-r--r-- 1 root wheel 5004 Mar 27 17:00 /var/log/thttpd.log.2.bz2

comment:5 by richardvm, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.