summaryrefslogtreecommitdiff
path: root/debian/nova-consoleproxy.logrotate
blob: 28d53604d0a369c50ebef42e2194ee80db8bc43f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/var/log/nova/nova-consoleproxy.log {
    daily
    missingok
    compress
    delaycompress
    create 640 nova nova
    postrotate
        if [ -f /var/run/nova-spicehtml5proxy.pid ] ; then \
            if dpkg-vendor --derives-from ubuntu ; then \
                echo "TODO: restart the daemon in Ubuntu" ; \
            else
                /etc/init.d/nova-spicehtml5proxy restart 2>/dev/null >/dev/null; \
            fi ; \
        fi
    endscript
}