aboutsummaryrefslogtreecommitdiff
path: root/src/pies.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-11-29 14:50:38 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-11-29 14:50:38 +0200
commitdc8b82d5b62e879c1291f531fd0d352a25fbfa87 (patch)
tree9d4c1f237fc36f5aeeeaabad031e4937f7ed93fb /src/pies.c
parent0a2857fb3ffd9afe6f245d44672fbdf31aed6de0 (diff)
downloadpies-dc8b82d5b62e879c1291f531fd0d352a25fbfa87.tar.gz
pies-dc8b82d5b62e879c1291f531fd0d352a25fbfa87.tar.bz2
New option --instance.
Diffstat (limited to 'src/pies.c')
-rw-r--r--src/pies.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pies.c b/src/pies.c
index 20ad9e2..4fe2e64 100644
--- a/src/pies.c
+++ b/src/pies.c
@@ -1567,7 +1567,8 @@ enum
OPT_FORCE,
OPT_CONFIG_HELP,
OPT_SOURCE_INFO,
- OPT_RATE
+ OPT_RATE,
+ OPT_INSTANCE
};
#define OPT_RESTART 'R'
@@ -1598,6 +1599,9 @@ static struct argp_option options[] = {
{"rate", OPT_RATE, N_("NUMBER"), 0,
N_("set default maximum rate for inetd-style components"),
GRP + 1},
+ {"instance", OPT_INSTANCE, N_("NAME"), 0,
+ N_("set instance name"),
+ GRP + 1},
#undef GRP
#define GRP 5
@@ -1681,6 +1685,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
foreground = 1;
break;
+ case OPT_INSTANCE:
+ instance = arg;
+ break;
+
case OPT_SYNTAX:
if (str_to_config_syntax (arg, &current_syntax))
{

Return to:

Send suggestions and report system problems to the System administrator.