Browse Source

git-daemon: --inetd implies --syslog

Otherwise nothing is logged anywhere, which is a Bad Thing.

Signed-off-by: Andreas Ericsson <ae@op5.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Andreas Ericsson 19 years ago committed by Junio C Hamano
parent
commit
bce8230d5d
  1. 2
      Documentation/git-daemon.txt
  2. 5
      daemon.c

2
Documentation/git-daemon.txt

@ -35,7 +35,7 @@ OPTIONS @@ -35,7 +35,7 @@ OPTIONS
do not have the 'git-daemon-export-ok' file.

--inetd::
Have the server run as an inetd service.
Have the server run as an inetd service. Implies --syslog.

--port::
Listen on an alternative port.

5
daemon.c

@ -628,8 +628,9 @@ int main(int argc, char **argv) @@ -628,8 +628,9 @@ int main(int argc, char **argv)

if (inetd_mode) {
fclose(stderr); //FIXME: workaround
log_syslog = 1;
return execute();
} else {
return serve(port);
}

return serve(port);
}

Loading…
Cancel
Save