Make it easier to add rsync arguments.
[util-vserver.git] / scripts / vserver-build.functions
index 4993c5c..7e26efd 100644 (file)
@@ -44,6 +44,9 @@ function makeDevEntry
        (f)     touch "$dst"
                chmod $4 "$dst"
                ;;
+       (l)     ln -s "$4" "$dst"
+               test -z "$5" || chmod "$5" "$dst"
+               ;;
        (*)     echo "Unknown dev-entry mode '$3'" >&2
                false
                ;;
@@ -282,5 +285,5 @@ function startSleepingGuest
 function stopSleepingGuest
 {
     local guest="$1"
-    $_VKILL --xid "$guest" -s INT -- 1
+    $_VSERVER "$guest" stop --rescue-init
 }