Permalink
Browse files

Remote: Allow the port to listen on to be specified on the commandline

  • Loading branch information...
beekhof committed Mar 22, 2017
1 parent a62b68f commit 14a7cc23e9e3b619f280dcc6d5032a17e84283b0
Showing with 6 additions and 0 deletions.
  1. +6 −0 lrmd/main.c
View
@@ -403,6 +403,9 @@ static struct crm_option long_options[] = {
{"verbose", 0, 0, 'V', "\tIncrease debug output"},
{"logfile", 1, 0, 'l', "\tSend logs to the additional named logfile"},
#ifndef ENABLE_PCMK_REMOTE
{"port", 1, 0, 'p', "\tPort to listen on"},
#endif
/* For compatibility with the original lrmd */
{"dummy", 0, 0, 'r', NULL, 1},
@@ -440,6 +443,9 @@ main(int argc, char **argv)
case 'l':
crm_add_logfile(optarg);
break;
case 'p':
setenv("PCMK_remote_port", optarg, 1);
break;
case 'V':
crm_bump_log_level(argc, argv);
break;

0 comments on commit 14a7cc2

Please sign in to comment.