-
Notifications
You must be signed in to change notification settings - Fork 4
Use systemd on Debian #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 pull request migrates the Debian package from SysV init to systemd for service management. The changes replace the traditional init script with a modern systemd service unit file and update all related packaging scripts to work with systemd.
Changes:
- Introduced systemd service file (debian/metaproxy.service) with proper service configuration
- Removed legacy SysV init script (debian/metaproxy.init) and related init.d configurations
- Updated postinst, postrm, and logrotate scripts to use systemd commands instead of init.d mechanisms
- Consolidated configuration files by moving user/service variables from metaproxy.user into metaproxy.default
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| debian/rules | Removed metaproxy.user file copying and added dh_installsystemd override to enable systemd integration |
| debian/metaproxy.service | New systemd unit file defining service behavior, dependencies, and execution parameters |
| debian/metaproxy.postrm | Removed update-rc.d cleanup call as systemd handles service removal automatically |
| debian/metaproxy.postinst | Changed to source /etc/default/metaproxy, added cleanup of old init.d script, replaced init.d service start with systemd daemon-reload |
| debian/metaproxy.logrotate | Updated postrotate hook to use systemctl instead of PID file-based HUP signal |
| debian/metaproxy.install | Removed metaproxy.user from installation list as it's no longer needed |
| debian/metaproxy.init | Removed entire 180-line SysV init script as it's replaced by systemd service |
| debian/metaproxy.default | Restructured to include both user configuration and OPTIONS variable for systemd service |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
No description provided.