| 662 | } |
| 663 | |
| 664 | static int usage(FILE *out, int rc) |
| 665 | { |
| 666 | fprintf( |
| 667 | out, |
| 668 | "Usage: pmux [-h] [-c pmuxdb cluster] [-d pmuxdb name] [-b bind path]\n" |
| 669 | "[-p listen port] [-r free ports range x:y][-l|-n][-f]\n" |
| 670 | "\n" |
| 671 | "Options:\n" |
| 672 | " -h This help message\n" |
| 673 | " -c Cluster information for pmuxdb\n" |
| 674 | " -d Use Comdb2 to save port allocations\n" |
| 675 | " -b Unix bind path\n" |
| 676 | " -p Port pmux will listen on\n" |
| 677 | " -r Range of ports to allocate for databases\n" |
| 678 | " -l Use file to persist port allocation\n" |
| 679 | " -n Do not persist port allocation (default)\n" |
| 680 | " -f Run in foreground rather than put to background\n"); |
| 681 | return rc; |
| 682 | } |
| 683 | |
| 684 | static bool unlink_bind_path() |
| 685 | { |