Skip to content

CA-425472: Signal correct daemon during log rotation#7007

Merged
lindig merged 1 commit intoxapi-project:masterfrom
freddy77:logrotate
Apr 15, 2026
Merged

CA-425472: Signal correct daemon during log rotation#7007
lindig merged 1 commit intoxapi-project:masterfrom
freddy77:logrotate

Conversation

@freddy77
Copy link
Copy Markdown
Collaborator

/var/run/syslogd.pid file does not exist in XS9.

/var/run/syslogd.pid file does not exist in XS9.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
/var/log/xcp-rrdd-plugins.log {
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we keeping the || true which is masking errors? Are we not always expecting this to succeed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose mainly for coherency. It should fail for missing service (not an issue if the service is stopper) or something very weird.

Personally I would keep just to avoid possible regressions.

@lindig lindig added this pull request to the merge queue Apr 15, 2026
Merged via the queue into xapi-project:master with commit d2e5f32 Apr 15, 2026
16 checks passed
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

Successfully merging this pull request may close these issues.

3 participants