Skip to content

对 __compat_restart_ssh 中 L43-L45 的一个问题 #11

Description

@unknowndevQwQ

在 commit 79e276c 以及更早的提交中,

menhera.sh/menhera.sh

Lines 43 to 45 in 79e276c

! systemctl enable ssh
! systemctl reset-failed ssh
if ! systemctl restart ssh; then
L43-L45 为什么要再次 enable 并且 reset-failed sshd?如果是 reset-failed 后 enable --now 或者直接 enable --now 会有什么不良后果?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions