fix open webserver port < 1024 as non privileged user

This commit is contained in:
Sebastian Sdorra
2014-05-16 13:14:26 +02:00
parent a5355cfefb
commit e71477e301
2 changed files with 37 additions and 2 deletions

View File

@@ -113,6 +113,9 @@ public class ScmServerDaemon implements Daemon
public void init(DaemonContext context) throws DaemonInitException, Exception
{
daemonArgs = context.getArguments();
// initialize web server and open port. We have to do this in the init
// method, because this method is started by jsvc with super user privileges.
webserver.init();
}
/**