]> git.pld-linux.org Git - packages/lxd.git/commitdiff
- missing lxd wrapper script
authormis <mis@pld-linux.org>
Mon, 22 Aug 2016 15:55:23 +0000 (17:55 +0200)
committermis <mis@pld-linux.org>
Mon, 22 Aug 2016 15:55:23 +0000 (17:55 +0200)
lxd.sh [new file with mode: 0644]

diff --git a/lxd.sh b/lxd.sh
new file mode 100644 (file)
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 $@
This page took 0.147826 seconds and 4 git commands to generate.