File: thttpd.logrotate

package info (click to toggle)
thttpd 2.23beta1-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 684 kB
  • ctags: 679
  • sloc: ansic: 7,908; sh: 1,871; makefile: 310
file content (17 lines) | stat: -rw-r--r-- 342 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/var/log/thttpd.log {
    rotate 14
    daily
    compress
    missingok
    delaycompress
    postrotate
    	if [ -f /var/run/thttpd.pid ]; then
		if [ -x /usr/sbin/invoke-rc.d ]; then
			invoke-rc.d thttpd restart > /dev/null 2>&1
		else
			/etc/init.d/thttpd restart > /dev/null 2>&1
		fi
	    rm -f /tmp/start_thttpd
	fi
    endscript
}