[packages/lxd] - missing lxd wrapper script

mis mis at pld-linux.org
Mon Aug 22 17:55:51 CEST 2016


commit 8f78a481db3b91fd9db073fb5a1688b0122a60a6
Author: mis <mis at pld-linux.org>
Date:   Mon Aug 22 17:55:23 2016 +0200

    - missing lxd wrapper script

 lxd.sh | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
---
diff --git a/lxd.sh b/lxd.sh
new file mode 100644
index 0000000..8bef563
--- /dev/null
+++ b/lxd.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+# LXD daemon wrapper 
+# regardless --logfile option lxd prints some messages on stderr at start, they
+# 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
+fi
+
+exec 1>>/dev/null
+exec 2>&1
+exec /usr/sbin/lxd $@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lxd.git/commitdiff/8f78a481db3b91fd9db073fb5a1688b0122a60a6



More information about the pld-cvs-commit mailing list