]> git.pld-linux.org Git - packages/lxd.git/commitdiff
wrong usage means errors
authorElan Ruusamäe <glen@delfi.ee>
Tue, 23 Aug 2016 06:51:58 +0000 (09:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 23 Aug 2016 06:51:58 +0000 (09:51 +0300)
lxd.sh

diff --git a/lxd.sh b/lxd.sh
index a9cfb357d4c7ca52781d92200d336d5eb6d7bc6a..4a9f864da1b408b9b457c95509a46c4ca360b855 100644 (file)
--- a/lxd.sh
+++ b/lxd.sh
@@ -4,9 +4,9 @@
 # are printed in log file as well, so just ignore stderr here 
 
 if [ "$1" != "daemon" ]; then
-    echo "This is a wrapper script for lxd, executed by service scripts."
-    echo "Use /usr/sbin/lxd to run lxd manually."
-    exit 0
+    echo >&2 "This is a wrapper script for lxd, executed by service scripts."
+    echo >&2 "Use /usr/sbin/lxd to run lxd manually."
+    exit 1
 fi
 
 exec 1>>/dev/null
This page took 0.082422 seconds and 4 git commands to generate.