turnip-api logrotate stanzas will SIGHUP twice

Bug #2015860 reported by Junien F
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
turnip
Fix Released
High
Guruprasad

Bug Description

Hi,

The turnip-api charm installs the following logrotate.d file :

/srv/turnip/logs/turnip-api-access.log {
    rotate 90
    daily
    dateext
    delaycompress
    compress
    missingok
    create 0644 turnip turnip
    postrotate
        service turnip-api reload
    endscript
}

/srv/turnip/logs/turnip-api-error.log {
    rotate 90
    daily
    dateext
    delaycompress
    compress
    missingok
    create 0644 turnip turnip
    postrotate
        service turnip-api reload
    endscript
}

This results in turnip-api being reloaded twice. Is there a reason for the 2 files being rotated separately instead of in a single stanza ?

Thanks

Related branches

Guruprasad (lgp171188)
Changed in turnip:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Guruprasad (lgp171188)
Guruprasad (lgp171188)
Changed in turnip:
status: Triaged → In Progress
Guruprasad (lgp171188)
Changed in turnip:
status: In Progress → Fix Committed
Colin Watson (cjwatson)
Changed in turnip:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.