[systemd-devel] systemctl stuck when run restart

johnschml johnschml at verizon.net
Sat Oct 5 15:43:31 UTC 2019


    IH  Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: Hongyi Zhao <hongyi.zhao at gmail.com> Date: 10/5/19  11:05 AM  (GMT-05:00) To: systemd-devel at lists.freedesktop.org Subject: [systemd-devel] systemctl stuck when run restart Hi,I installed the latest git version of openssh-portable, and make thefollowing ssh.service file:$ cat /lib/systemd/system/ssh.service[Unit]Description=OpenBSD Secure Shell serverAfter=network.target auditd.serviceConditionPathExists=!/usr/local/etc/sshd_not_to_be_run[Service]EnvironmentFile=-/usr/local/etc/default/sshExecStartPre=/usr/local/sbin/sshd -tExecStart=/usr/local/sbin/sshd -D $SSHD_OPTSExecReload=/usr/local/sbin/sshd -tExecReload=/bin/kill -HUP $MAINPIDKillMode=processRestart=on-failureRestartPreventExitStatus=255Type=notify[Install]WantedBy=multi-user.targetAlias=sshd.serviceWith the above service file, I will stuck on the following command:$ sudo systemctl stop ssh$ sudo systemctl start ssh^Cwerner at localhost:~/software/openssh$ sudo systemctl restart ssh^CIf I don't hit ^C, the command will stuck there for ever.Any hints?-- Hongsheng Zhao <hongyi.zhao at gmail.com>Institute of Semiconductors, Chinese Academy of SciencesGnuPG DSA: 0xD108493_______________________________________________systemd-devel mailing listsystemd-devel at lists.freedesktop.orghttps://lists.freedesktop.org/mailman/listinfo/systemd-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20191005/e6db704b/attachment.html>


More information about the systemd-devel mailing list