Comment 2 for bug 887410

Revision history for this message
Jay R. Wren (evarlast) wrote :

Clint,

I expect a prompt to be displayed to stdout and prompt for input on stdin. What actually happens is that I start apache via ssh and the prompt is displayed via plymouth on the server's console which I rarely see.

It would be nice if the check was not just "if plymouth is running and available" but instead "if plymouth is running and available and the request was from a tty on which plymouth can prompt a request". Or maybe even just "and we are not on a pseudo terminal"

Here is my patch for ask-for-password in /usr/share/apache2
@@ -23,7 +23,7 @@

 prompt="Apache needs to decrypt your SSL Keys for $sitename ($keytype)
 Please enter passphrase:"
-if [ -x /bin/plymouth ] && plymouth --ping ; then
+if [ -x /bin/plymouth ] && plymouth --ping && ! `tty |grep pty`; then
     echo $prompt | logger
     exec plymouth ask-for-password --prompt="$prompt"
 else