Skip to content

refactor(debian): remove unnecessary service management#6

Merged
elysia-best merged 1 commit into
mainfrom
elysia/fix-systemd
May 26, 2026
Merged

refactor(debian): remove unnecessary service management#6
elysia-best merged 1 commit into
mainfrom
elysia/fix-systemd

Conversation

@elysia-best

Copy link
Copy Markdown
Member

Using debhelper's dh_installsystemd to manage service files automatically.

This pr fixes #5

Signed-off-by: Elysia <a.elysia@proton.me>

Copilot AI left a comment

Copy link
Copy Markdown

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 refactors the Debian packaging to rely on debhelper’s dh_installsystemd for installing and managing the openlist.service unit, removing direct systemctl invocations and manual unit file staging. This aligns the packaging with standard Debian/Ubuntu systemd handling and addresses upgrade/unpack failures reported in #5.

Changes:

  • Stop manually creating/installing the systemd unit file path during override_dh_auto_install; install/manage the unit via dh_installsystemd.
  • Remove explicit service stop/enable/start/daemon-reload logic from postinst, prerm, and postrm, deferring to debhelper-generated maintainer script snippets.
  • Update openlist.install comments to reflect the new systemd-unit installation mechanism.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
debian/rules Removes manual systemd unit staging and adds override_dh_installsystemd to install/manage the unit via debhelper.
debian/prerm Drops manual service stop logic, leaving service handling to debhelper.
debian/postrm Removes manual systemd cleanup on purge/remove, relying on debhelper-provided behavior.
debian/postinst Removes direct systemctl enable/start/reload calls so debhelper manages service activation.
debian/openlist.install Updates comments to reflect manual staging for binaries and debhelper-based systemd unit installation.

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

@elysia-best elysia-best merged commit 95129cb into main May 26, 2026
1 check passed
@elysia-best elysia-best deleted the elysia/fix-systemd branch May 26, 2026 16:20
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.

[Bug] PPA upgrade fails: openlist.service.dpkg-new No such file or directory

3 participants