All pastes #767356 Raw Edit

kevev

public text v1 · immutable
·published 2007-11-09 18:10 UTC
rendered paste body
def test_glusterfsd
begin
`ps h -C glusterfsd`
if string != ""
return 1
end
rescue
else
return 0
end
end

while true do
if test_glusterfsd() == 1
`/etc/init.d/glusterfsd start`
sleep(2)
else
sleep(5)
end
end