Install systemd unit file if supported#19030
Conversation
Signed-off-by: Drew Leske <dleske@uvic.ca>
Codecov Report
@@ Coverage Diff @@
## main #19030 +/- ##
===========================================
- Coverage 67.43% 44.83% -22.60%
===========================================
Files 992 244 -748
Lines 108727 13386 -95341
Branches 2747 2747
===========================================
- Hits 73316 6002 -67314
+ Misses 31479 7080 -24399
+ Partials 3932 304 -3628
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
The installation script should not include the systemd service configuration. The purpose of the installation script is solely to handle the deployment of the Harbor service. |
|
@wy65701436 I'm fine with the PR being rejected but the reasoning is unsound in my view. The install script's deployment is half-baked: it installs the service and starts it but does nothing to ensure it stays running. If I say I've deployed a service and it doesn't come back after a power outage or reboot, I haven't really deployed it. Moreover, as the install script currently "deploys" the Harbor service, some of the containers are restarted on reboot, but fewer than half, leading to confusion and potentially a lack of trust in the software. Finally, use of the unit file provided by Harbor is not documented as an installation step. |
Thank you for contributing to Harbor!
Comprehensive Summary of your change
On a systemd system, three or four of the necessary containers are started after a reboot of the 10 expected. Based on the advice in #18704, have added support for creating a systemd unit file in the install script. On a system without systemd, there is no effect.
Issue being fixed
Fixes #18704
Please indicate you've done the following: