From cbfed8ee9912a5dbea6e204935cc074cea665561 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Tue, 8 Feb 2011 15:21:39 +0000 Subject: [PATCH] fixes --- examples/lpostcmd.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/examples/lpostcmd.lua b/examples/lpostcmd.lua index 5d41590..2f5b5a2 100644 --- a/examples/lpostcmd.lua +++ b/examples/lpostcmd.lua @@ -11,8 +11,8 @@ local rsyncpostcmd = { -- based on default rsync. default.rsync, - -- for this config it is important to keep maxProcesses at 1, so - -- the postcmds will only be spawned after the rsync completed + -- for this config it is important to keep maxProcesses at 1, so + -- the postcmds will only be spawned after the rsync completed maxProcesses = 1, -- called whenever something is to be done @@ -22,11 +22,12 @@ local rsyncpostcmd = { -- if the event is a blanket event and not the startup, -- its there to spawn the webservice restart at the target. if event.etype == "Blanket" then - -- uses rawget to test if "isRestart" has been set without + -- uses rawget to test if "isPostcmd" has been set without -- triggering an error if not. local isPostcmd = rawget(event, "isPostcmd") if event.isPostcmd then - spawn(event, "/usr/bin/ssh", config.host, config.postcmd) + spawn(event, "/usr/bin/ssh", + config.host, config.postcmd) return else -- this is the startup, forwards it to default routine. @@ -34,7 +35,7 @@ local rsyncpostcmd = { end error("this should never be reached") end - -- for any other event, a blanket event is created that + -- for any other event, a blanket event is created that -- will stack on the queue and do the postcmd when its finished local sync = inlet.createBlanketEvent() sync.isPostcmd = true