Skip to content

Conversation

@adamdickmeiss
Copy link
Contributor

Store systemd service in /usr/lib/systemd/system.
Use systemd-rpm-macros for dealing with systemd service in post, preun, postun.
Proper log file /var/log/pazpar2.log

Store systemd service in /usr/lib/systemd/system.
Use systemd-rpm-macros for dealing with systemd service
in post, preun, postun.
Proper log file /var/log/pazpar2.log
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the pazpar2 RPM package to follow systemd best practices by storing the service file in /usr/lib/systemd/system (instead of /etc/systemd/system), adopting systemd-rpm-macros for service lifecycle management, and updating the log file path to a proper file location.

Changes:

  • Moved systemd service file from /etc/systemd/system to /usr/lib/systemd/system with proper permissions (0644)
  • Replaced manual systemctl calls with systemd macros (%systemd_post, %systemd_preun, %systemd_postun_with_restart)
  • Updated log path from directory /var/log/pazpar2 to file /var/log/pazpar2.log and PID file from /var/run/pazpar2.pid to /run/pazpar2.pid

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
rpm/pazpar2.sysconfig Updates log file path to specific file, modernizes PID file location, and reorders command options
rpm/pazpar2.service Removes PIDFile directive (not needed with Type=simple)
pazpar2.spec Adds systemd-rpm-macros dependency, updates service file location and permissions, replaces manual systemctl commands with systemd macros, and reorders package definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@adamdickmeiss adamdickmeiss merged commit ae16032 into master Jan 16, 2026
2 checks passed
@adamdickmeiss adamdickmeiss deleted the rpm-package-cleanup branch January 16, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants