#include "version.h"
char system_string[64], version_string[64];
+int bindport;
+char *bindaddr;
void lockfile(const char *pidfile)
{
printf(" -p <pidfile> - Write PID to this file\n");
printf(" -c <conf file> - Specify configuration file\n");
printf(" -r - Run with realtime priority\n");
+ printf(" -a <address> - Bind to IP address\n");
+ printf(" -b <port> - Bind to port\n");
printf(" -h - Print this help\n");
exit(0);
}
struct utsname utsbuf;
/* Arguments */
- while ((c = getopt(argc, argv, "drp:c:h")) != EOF) {
+ while ((c = getopt(argc, argv, "drp:c:a:b:h")) != EOF) {
switch(c) {
case 'c':
conffile = optarg;
case 'p':
pidfile = optarg;
break;
+ case 'a':
+ bindaddr = optarg;
+ break;
+ case 'b':
+ bindport = atoi(optarg);
+ break;
case 'd':
nodaemon = true;
break;