Skip to content

Commit

Permalink
Renamed command line option from --pidfile to --pid-file.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Aug 11, 2017
1 parent a7cd689 commit 1ed3381
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/goaccess.conf
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ with-mouse false

# Write the PID to a file when used along the daemonize option.
#
#pidfile /path/goaccess.pid
#pid-file /var/run/goaccess.pid

# Enable real-time HTML output.
#
Expand Down
6 changes: 3 additions & 3 deletions src/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct option long_opts[] = {
{"num-tests" , required_argument , 0 , 0 } ,
{"origin" , required_argument , 0 , 0 } ,
{"output" , required_argument , 0 , 0 } ,
{"pidfile" , required_argument , 0 , 0 } ,
{"pid-file" , required_argument , 0 , 0 } ,
{"port" , required_argument , 0 , 0 } ,
{"process-and-exit" , no_argument , 0 , 0 } ,
{"real-os" , no_argument , 0 , 0 } ,
Expand Down Expand Up @@ -203,7 +203,7 @@ cmd_help (void)
" --fifo-out=<path> - Path to write named pipe (FIFO).\n"
" --origin=<addr> - Ensure clients send the specified origin header\n"
" upon the WebSocket handshake.\n"
" --pidfile=<path> - Write PID to a file when --daemonize is used.\n"
" --pid-file=<path> - Write PID to a file when --daemonize is used.\n"
" --port=<port> - Specify the port to use.\n"
" --real-time-html - Enable real-time HTML output.\n"
" --ssl-cert=<cert.crt> - Path to TLS/SSL certificate.\n"
Expand Down Expand Up @@ -441,7 +441,7 @@ parse_long_opt (const char *name, const char *oarg)
conf.origin = oarg;

/* PID file to write */
if (!strcmp ("pidfile", name))
if (!strcmp ("pid-file", name))
conf.pidfile = oarg;

/* port to use */
Expand Down

0 comments on commit 1ed3381

Please sign in to comment.