Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logrotate crashes Tinyproxy #136

Closed
gjelsas opened this issue Jan 31, 2018 · 1 comment
Closed

Logrotate crashes Tinyproxy #136

gjelsas opened this issue Jan 31, 2018 · 1 comment

Comments

@gjelsas
Copy link

gjelsas commented Jan 31, 2018

Whenever logrotate touches the logfiles tinyproxy stops with:

ERROR: Could not create log file /var/log/tinyproxy/tinyproxy.log: Bad file descriptor.
Falling back to syslog logging.
error calling select: Interrupted system call

my temporary fix would be to change the logging to syslog in
/etc/tinyproxy/tinyproxy.conf
Syslog On

or to insert
create 640 tinyproxy tinyproxy
into the /etc/logrotate.d/tinyproxy

# cat /etc/logrotate.d/tinyproxy                                                                                                                                                          
/var/log/tinyproxy/tinyproxy.log {
	rotate 14
	daily
	compress
	missingok
	create 640 tinyproxy tinyproxy
	postrotate
		invoke-rc.d --quiet tinyproxy reload > /dev/null
	endscript
	notifempty
}

Testet on Ubuntu 17.10

@rofl0r
Copy link
Contributor

rofl0r commented Jan 31, 2018

this has been fixed in git almost a year ago #67

@rofl0r rofl0r closed this as completed Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants