<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body dir="auto"><div dir="auto">    I</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">H  </div><div id="composer_signature" dir="auto"><div style="font-size:85%;color:#575757" dir="auto">Sent from my Verizon, Samsung Galaxy smartphone</div></div><div><br></div><div style="font-size:100%;color:#000000" dir="auto"><!-- originalMessage --><div>-------- Original message --------</div><div>From: Hongyi Zhao <hongyi.zhao@gmail.com> </div><div>Date: 10/5/19  11:05 AM  (GMT-05:00) </div><div>To: systemd-devel@lists.freedesktop.org </div><div>Subject: [systemd-devel] systemctl stuck when run restart </div><div><br></div></div>Hi,<br><br>I installed the latest git version of openssh-portable, and make the<br>following ssh.service file:<br><br>$ cat /lib/systemd/system/ssh.service<br>[Unit]<br>Description=OpenBSD Secure Shell server<br>After=network.target auditd.service<br>ConditionPathExists=!/usr/local/etc/sshd_not_to_be_run<br><br>[Service]<br>EnvironmentFile=-/usr/local/etc/default/ssh<br>ExecStartPre=/usr/local/sbin/sshd -t<br>ExecStart=/usr/local/sbin/sshd -D $SSHD_OPTS<br>ExecReload=/usr/local/sbin/sshd -t<br>ExecReload=/bin/kill -HUP $MAINPID<br>KillMode=process<br>Restart=on-failure<br>RestartPreventExitStatus=255<br>Type=notify<br><br>[Install]<br>WantedBy=multi-user.target<br>Alias=sshd.service<br><br>With the above service file, I will stuck on the following command:<br><br>$ sudo systemctl stop ssh<br>$ sudo systemctl start ssh<br>^C<br>werner@localhost:~/software/openssh$ sudo systemctl restart ssh<br>^C<br><br>If I don't hit ^C, the command will stuck there for ever.<br><br>Any hints?<br>-- <br>Hongsheng Zhao <hongyi.zhao@gmail.com><br>Institute of Semiconductors, Chinese Academy of Sciences<br>GnuPG DSA: 0xD108493<br>_______________________________________________<br>systemd-devel mailing list<br>systemd-devel@lists.freedesktop.org<br>https://lists.freedesktop.org/mailman/listinfo/systemd-devel</body></html>