Opened 9 years ago

Closed 9 years ago

#144 closed incident (invalid)

/var/log/thttpd.log is not rotated

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


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/ 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 Changed 9 years ago by rick

In 10288/proxy:

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

comment:2 Changed 9 years ago by rick

In 10289/proxy:

Allow rotating of tinyproxy logfiles.

Related-To: beheer#144

comment:3 Changed 9 years ago by richardvm

iets uitgebreidere man page van thttpd

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


comment:4 Changed 9 years ago by richardvm

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 Changed 9 years ago by richardvm

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