-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from Jakuje/runtime
fix: Review and update service units and socket unit to include distribution defaults
- Loading branch information
Showing
29 changed files
with
375 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
[Unit] | ||
Description=OpenBSD Secure Shell server socket | ||
Documentation=man:sshd(8) man:sshd_config(5) | ||
Before={{ sshd_service }}.service | ||
{% if __sshd_socket_accept %} | ||
Conflicts={{ sshd_service }}.service | ||
{% else %} | ||
Before=sockets.target | ||
{% endif %} | ||
|
||
[Socket] | ||
ListenStream=22 | ||
{% if __sshd_socket_accept %} | ||
Accept=yes | ||
{% else %} | ||
Accept=no | ||
{% endif %} | ||
|
||
[Install] | ||
WantedBy=sockets.target |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
[Unit] | ||
Description=OpenBSD Secure Shell server per-connection daemon | ||
Documentation=man:sshd(8) man:sshd_config(5) | ||
After=auditd.service | ||
{% if __sshd_service_after is not none %} | ||
After={{ __sshd_service_after }} | ||
{% endif %} | ||
{% if __sshd_service_wants is string %} | ||
Wants={{ __sshd_service_wants }} | ||
{% elif __sshd_service_wants is iterable %} | ||
{% for file in __sshd_service_wants %} | ||
Wants={{ file }} | ||
{% endfor %} | ||
{% endif %} | ||
|
||
[Service] | ||
ExecStart=-{{ sshd_binary }} -i -f {{ sshd_config_file }} | ||
{% if __sshd_environment_file is string %} | ||
EnvironmentFile=-{{ __sshd_environment_file }} | ||
{% elif __sshd_environment_file is iterable %} | ||
{% for file in __sshd_environment_file %} | ||
EnvironmentFile=-{{ file }} | ||
{% endfor %} | ||
{% endif %} | ||
ExecStart=-{{ sshd_binary }} -i {{ __sshd_environment_variable }} -f {% if sshd_main_config_file is not none %} | ||
{{- sshd_main_config_file }} | ||
{% else %} | ||
{{- sshd_config_file }} | ||
{% endif %} | ||
StandardInput=socket | ||
{% if __sshd_runtime_directory is not none %} | ||
RuntimeDirectory={{ __sshd_runtime_directory }} | ||
RuntimeDirectoryPreserve=yes | ||
RuntimeDirectoryMode={{ __sshd_runtime_directory_mode }} | ||
{% endif %} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.