mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example
This commit is contained in:
@@ -166,13 +166,13 @@
|
||||
after having set up its communication channel. During runtime it
|
||||
sends further status updates to the init system:</para>
|
||||
|
||||
<programlisting>#!/bin/bash
|
||||
<programlisting>#!/bin/sh
|
||||
|
||||
mkfifo /tmp/waldo
|
||||
systemd-notify --ready --status="Waiting for data…"
|
||||
|
||||
while : ; do
|
||||
read a < /tmp/waldo
|
||||
read -r a < /tmp/waldo
|
||||
systemd-notify --status="Processing $a"
|
||||
|
||||
# Do something with $a …
|
||||
|
||||
Reference in New Issue
Block a user