Fix systemd unit namespace issue (fixes: #53, #58, #68, #100)#101
Open
leegarrett wants to merge 1 commit into
Open
Fix systemd unit namespace issue (fixes: #53, #58, #68, #100)#101leegarrett wants to merge 1 commit into
leegarrett wants to merge 1 commit into
Conversation
, skeeto#100) Without this change, the systemd unit would fail like this: # systemctl start endlessh # journalctl -u endlessh -b Feb 14 11:08:58 batou systemd[1]: Started endlessh.service - Endlessh SSH Tarpit. Feb 14 11:08:58 batou systemd[1]: endlessh.service: Main process exited, code=exited, status=226/NAMESPACE Feb 14 11:08:58 batou systemd[1]: endlessh.service: Failed with result 'exit-code'. Feb 14 11:09:28 batou systemd[1]: endlessh.service: Scheduled restart job, restart counter is at 1. Feb 14 11:09:28 batou systemd[1]: Stopped endlessh.service - Endlessh SSH Tarpit. Feb 14 11:09:28 batou systemd[1]: Started endlessh.service - Endlessh SSH Tarpit. Feb 14 11:09:28 batou systemd[1]: endlessh.service: Main process exited, code=exited, status=226/NAMESPACE Feb 14 11:09:28 batou systemd[1]: endlessh.service: Failed with result 'exit-code'. Feb 14 11:09:58 batou systemd[1]: endlessh.service: Scheduled restart job, restart counter is at 2. Feb 14 11:09:58 batou systemd[1]: Stopped endlessh.service - Endlessh SSH Tarpit. Feb 14 11:09:58 batou systemd[1]: Started endlessh.service - Endlessh SSH Tarpit. Feb 14 11:09:58 batou systemd[1]: endlessh.service: Main process exited, code=exited, status=226/NAMESPACE Feb 14 11:09:58 batou systemd[1]: endlessh.service: Failed with result 'exit-code'. Feb 14 11:10:28 batou systemd[1]: endlessh.service: Scheduled restart job, restart counter is at 3. Feb 14 11:10:28 batou systemd[1]: Stopped endlessh.service - Endlessh SSH Tarpit. Feb 14 11:10:28 batou systemd[1]: Started endlessh.service - Endlessh SSH Tarpit. Feb 14 11:10:29 batou systemd[1]: endlessh.service: Main process exited, code=exited, status=226/NAMESPACE Feb 14 11:10:29 batou systemd[1]: endlessh.service: Failed with result 'exit-code'. Feb 14 11:10:59 batou systemd[1]: endlessh.service: Scheduled restart job, restart counter is at 4. Feb 14 11:10:59 batou systemd[1]: Stopped endlessh.service - Endlessh SSH Tarpit. Feb 14 11:10:59 batou systemd[1]: endlessh.service: Start request repeated too quickly. Feb 14 11:10:59 batou systemd[1]: endlessh.service: Failed with result 'exit-code'. Feb 14 11:10:59 batou systemd[1]: Failed to start endlessh.service - Endlessh SSH Tarpit. With this change, starting endlessh.service succeeds: # systemctl start endlessh # journalctl -u endlessh -b [...] Feb 14 11:15:08 batou systemd[1]: Started endlessh.service - Endlessh SSH Tarpit. This change was tested on Debian trixie, up-to-date as of 2025-02-14.
ThomasLamprecht
approved these changes
Feb 22, 2025
|
This change solves the startup issue on Ubuntu 24.04. |
Author
|
@skeeto Unless you have reservations, can we get this merged? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix systemd unit namespace issue (fixes: #53, #58, #68, #100)
Without this change, the systemd unit would fail like this:
With this change, starting endlessh.service succeeds:
This change was tested on Debian trixie, up-to-date as of 2025-02-14.