[projects/rc-scripts] waittime is integer type ([ $foo -gt 0])

glen glen at pld-linux.org
Fri Dec 11 17:05:45 CET 2015


commit f4ae2a8d53b582e6f207e7f53248816c8b05d909
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Dec 11 18:05:40 2015 +0200

    waittime is integer type ([ $foo -gt 0])

 lib/functions | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/functions b/lib/functions
index f9538d2..2b2e3a1 100644
--- a/lib/functions
+++ b/lib/functions
@@ -708,7 +708,7 @@ _daemon_exec() {
 
 # A function to start a program (now it's useful on read-only filesystem too)
 daemon() {
-	local errors="" waitname="" waittime=""
+	local errors="" waitname="" waittime=0
 	local exit_code=0
 	local nice=$SERVICE_RUN_NICE_LEVEL
 	local fork user closefds redirfds pidfile makepid chdir=/
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/rc-scripts.git/commitdiff/f4ae2a8d53b582e6f207e7f53248816c8b05d909



More information about the pld-cvs-commit mailing list