aboutsummaryrefslogtreecommitdiff
path: root/src/meta1gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/meta1gram.y')
-rw-r--r--src/meta1gram.y13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/meta1gram.y b/src/meta1gram.y
index 44751f3..3e19a12 100644
--- a/src/meta1gram.y
+++ b/src/meta1gram.y
@@ -338,10 +338,21 @@ xlat_listen_socket (struct meta1_stmt *stmt, struct component *comp)
return 0;
}
+static int
+xlat_start_action (struct meta1_stmt *stmt, struct component *comp)
+{
+ if (strcmp (stmt->v.value->v.string, "wait") == 0)
+ {
+ meta1_line_begin ();
+ meta1_line_add ("exec", 4);
+ stmt->v.value->v.string = meta1_line_finish ();
+ }
+ return 0;
+}
static struct node_trans root_node_trans[] = {
{ "listen_socket", "socket", xlat_listen_socket },
- { "start_action", "mode" },
+ { "start_action", "mode", xlat_start_action },
{ "pass_fd_socket", "pass-fd-socket" },
{ "user", "user" },
{ "path", "program" },

Return to:

Send suggestions and report system problems to the System administrator.