Give shutdown a bit of time to happen
authorJamie Cameron <jcameron@webmin.com>
Tue, 19 Oct 2010 00:11:13 +0000 (17:11 -0700)
committerJamie Cameron <jcameron@webmin.com>
Tue, 19 Oct 2010 00:11:13 +0000 (17:11 -0700)
proftpd/proftpd-lib.pl

index d069a03..c2e283f 100755 (executable)
@@ -818,6 +818,7 @@ if (&get_proftpd_version() > 1.22) {
        # Stop and re-start
        local $err = &stop_proftpd();
        return $err if ($err);
+       sleep(1);       # Wait for clean shutdown
        return &start_proftpd();
        }
 else {