X-Git-Url: http://git.onelab.eu/?p=nepi.git;a=blobdiff_plain;f=nepi%2Futil%2Fexecfuncs.py;h=0d61b42e0d44b6a089d226b4e611f13610d359c9;hp=502906c81c751dad825f136d6b0c9eb6ce45a825;hb=bc5bcad284463c1d7cf2a765a7bdb673665e2bf9;hpb=f7557aa4c07a6d03e3749708d73232fc4bb9fe04 diff --git a/nepi/util/execfuncs.py b/nepi/util/execfuncs.py index 502906c8..0d61b42e 100644 --- a/nepi/util/execfuncs.py +++ b/nepi/util/execfuncs.py @@ -142,7 +142,7 @@ def lspawn(command, pidfile, else: stderr = ' ' + stderr - escaped_pidfile = shell_escape(pidfile), + escaped_pidfile = shell_escape(pidfile) daemon_command = '{{ {{ {command} > {stdout} 2>{stderr} < {stdin} & }} ; echo $! 1 > {escaped_pidfile} ; }}'\ .format(**locals()) @@ -156,8 +156,8 @@ def lspawn(command, pidfile, (out, err), proc = lexec(cmd) if proc.wait(): - raise RuntimeError("Failed to set up application on host {}: {} {}" - .format(host, out, err)) + raise RuntimeError("Failed to set up local application: {} {}" + .format(out, err)) return ((out, err), proc)