Skip to content

Instantly share code, notes, and snippets.

@gwillem
Created January 15, 2017 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gwillem/40d8e2703dba531f4461d3c4df60f31c to your computer and use it in GitHub Desktop.
Save gwillem/40d8e2703dba531f4461d3c4df60f31c to your computer and use it in GitHub Desktop.
Blackfire packaging is broken for at least 1.9.1 - 1.9.2
$ dpkg-query --show blackfire-agent
blackfire-agent	1.9.2

$ cat /etc/logrotate.d/blackfire-agent 
/var/log/blackfire/agent.log {
    su blackfire blackfire
    rotate 7
    daily
    missingok
    notifempty
    sharedscripts
    copytruncate
    compress
}

$ logrotate -f /etc/logrotate.d/blackfire-agent 
error: /etc/logrotate.d/blackfire-agent:2 unknown option 'su' -- ignoring line
error: /etc/logrotate.d/blackfire-agent:2 unexpected text

$ lsb_release -d
Description:	Ubuntu 12.04.5 LTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment