X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=man%2Fsystemd-notify.xml;h=073bc1313e27b145013daa89b587b41114d6c80a;hb=ea5943d3862cc690daa76e2ad336737407ec711c;hp=46f3f1afaf6a82f741cb3007cb2a483e806276d2;hpb=c5abba08873903d80a2dcdd46aace959fcae1b0f;p=elogind.git
diff --git a/man/systemd-notify.xml b/man/systemd-notify.xml
index 46f3f1afa..073bc1313 100644
--- a/man/systemd-notify.xml
+++ b/man/systemd-notify.xml
@@ -8,16 +8,16 @@
Copyright 2010 Lennart Poettering
systemd is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
+ Lesser General Public License for more details.
- You should have received a copy of the GNU General Public License
+ You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see .
-->
@@ -73,6 +73,11 @@
environment variables to send as part of the status
update.
+ Note that systemd will refuse reception of
+ status updates from this command unless
+ NotifyAccess=all is set for the
+ service unit this command is called from.
+
@@ -89,6 +94,13 @@
text and exits.
+
+
+
+ Prints a short version
+ string and exits.
+
+
@@ -142,6 +154,17 @@
semantics of this option see
sd_booted3.
+
+
+
+
+ Controls disk
+ read-ahead operations. The argument
+ must be a string, and either "cancel",
+ "done" or "noreplay". For details
+ about the semantics of this option see
+ sd_readahead3.
+
@@ -153,6 +176,34 @@
code otherwise.
+
+ Example
+
+
+ Start-up Notification and Status Updates
+
+ A simple shell daemon that sends
+ start-up notifications after having set up its
+ communication channel. During runtime it sends
+ further status updates to the init
+ system:
+
+ #!/bin/bash
+
+mkfifo /tmp/waldo
+systemd-notify --ready --status="Waiting for data..."
+
+while : ; do
+ read a < /tmp/waldo
+ systemd-notify --status="Processing $a"
+
+ # Do something with $a ...
+
+ systemd-notify --status="Waiting for data..."
+done
+
+
+
See Also