summaryrefslogtreecommitdiff
blob: a52875252593736d23ea3cfaa54467f12e3d2a95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -Nurp util-vserver-0.30.210.orig/scripts/legacy/vserver util-vserver-0.30.210.nice/scripts/legacy/vserver
--- util-vserver-0.30.210.orig/scripts/legacy/vserver	2005-03-21 21:03:31.000000000 +0100
+++ util-vserver-0.30.210.nice/scripts/legacy/vserver	2006-04-13 02:34:40.000000000 +0200
@@ -514,7 +514,7 @@ elif [ "$2" = "start" ] ; then
 			DOMAINOPT="--domainname $S_DOMAINNAME"
 		fi
 		if [ "$S_NICE" != "" ] ; then
-			NICECMD="nice -$S_NICE"
+			NICECMD="nice -n $S_NICE"
 		fi
 		mkdir -p $__PKGSTATEDIR
 		chmod 700 $__PKGSTATEDIR
diff -Nurp util-vserver-0.30.210.orig/scripts/vserver.functions util-vserver-0.30.210.nice/scripts/vserver.functions
--- util-vserver-0.30.210.orig/scripts/vserver.functions	2006-01-22 13:24:25.000000000 +0100
+++ util-vserver-0.30.210.nice/scripts/vserver.functions	2006-04-13 02:35:35.000000000 +0200
@@ -98,12 +98,11 @@ function _generateChbindOptions
 function _generateNiceCommand
 {
     local vdir=$1
-    local nice
+    local nice=0
 
-    test -r "$vdir/nice" || return 0;
-    read nice <"$vdir"/nice
+    test -r "$vdir/nice" && read nice <"$vdir"/nice
 
-    NICE_CMD=( $_NICE -$nice )
+    NICE_CMD=( $_NICE -n $nice )
 }