From: Michael Jumper Date: Fri, 25 May 2012 06:49:40 +0000 (-0700) Subject: Update manpage, fix usage string printf. X-Git-Url: http://git.alex.org.uk Update manpage, fix usage string printf. --- diff --git a/man/guacd.8 b/man/guacd.8 index 9843ea9..7aa6146 100644 --- a/man/guacd.8 +++ b/man/guacd.8 @@ -1,4 +1,4 @@ -.TH guacd 8 "10 Dec 2011" "version 0.5.0" "Guacamole" +.TH guacd 8 "6 May 2012" "version 0.6.0" "Guacamole" . .SH NAME guacd \- Guacamole proxy daemon @@ -8,6 +8,7 @@ guacd \- Guacamole proxy daemon [\fB-b\fR \fIHOST\fR] [\fB-l\fR \fIPORT\fR] [\fB-p\fR \fIFILE\fR] +[\fB-f\fR] . .SH DESCRIPTION .B guacd @@ -38,6 +39,12 @@ Causes to write the PID of the daemon process to the specified file. This is useful for init scripts and is used by the provided init script. +.TP +\fB\-f\fR +Causes +.B guacd +to run in the foreground, rather than automatically forking into the +background. . .SH AUTHOR Written by Michael Jumper diff --git a/src/daemon.c b/src/daemon.c index a727dc6..5435865 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -227,7 +227,7 @@ int main(int argc, char* argv[]) { fprintf(stderr, "USAGE: %s" " [-l LISTENPORT]" " [-b LISTENADDRESS]" - " [-p PIDFILE]", + " [-p PIDFILE]" " [-f]\n", argv[0]); exit(EXIT_FAILURE);