man: systemd-run: run bash with --send-sighup
authorEvgeny Vereshchagin <evvers@ya.ru>
Wed, 23 Sep 2015 12:38:30 +0000 (12:38 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 23 Sep 2015 13:52:29 +0000 (13:52 +0000)
When bash is interactive it ignores SIGTERM.
SIGHUP indicates to bash that the connection has been
severed. `systemctl stop` doesn't wait TimeoutStopSec secs.

man/systemd-run.xml

index b220e0d..8850735 100644 (file)
@@ -381,7 +381,7 @@ Dec 08 20:44:48 container systemd[1]: Started /bin/touch /tmp/foo.</programlisti
     as a service passing its standard input, output and error to
     the calling TTY.</para>
 
-    <programlisting># systemd-run -t /bin/bash</programlisting>
+    <programlisting># systemd-run -t --send-sighup /bin/bash</programlisting>
 
   </refsect1>