1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00

man/sd-notify: /bin/bash -> /bin/sh, read -> read -r in example

This commit is contained in:
наб 2021-12-12 20:28:39 +01:00
parent f1e6f93372
commit a6ac4cbc4e
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1

View File

@ -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 &lt; /tmp/waldo
read -r a &lt; /tmp/waldo
systemd-notify --status="Processing $a"
# Do something with $a …