Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- rename 'restart-on-failure' to 'restart-on-exit'

git-svn-id: https://semicomplete.googlecode.com/svn/grok@2418 66067f73-fe4c-0410-82e9-b9c6d0c95a22
  • Loading branch information...
commit 1aa8aedfa0ed549c508d82d0276dfc28f0708d20 1 parent f147eb8
@jordansissel authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  conf.lex
  2. +2 −2 conf.y
View
2  conf.lex
@@ -24,7 +24,7 @@ file { return PROG_FILE; }
follow { return FILE_FOLLOW; }
exec { return PROG_EXEC; }
-restart-on-failure { return EXEC_RESTARTONFAIL; }
+restart-on-exit { return EXEC_RESTARTONEXIT; }
minimum-restart-delay { return EXEC_MINRESTARTDELAY; }
run-interval { return EXEC_RUNINTERVAL; }
read-stderr { return EXEC_READSTDERR; }
View
4 conf.y
@@ -33,7 +33,7 @@ void yyerror (YYLTYPE *loc, struct config *conf, char const *s) {
%token FILE_FOLLOW "follow"
-%token EXEC_RESTARTONFAIL "restart-on-failure"
+%token EXEC_RESTARTONEXIT "restart-on-exit"
%token EXEC_MINRESTARTDELAY "minimum-restart-delay"
%token EXEC_RUNINTERVAL "run-interval"
%token EXEC_READSTDERR "read-stderr"
@@ -114,7 +114,7 @@ exec_block: exec_block exec_block_statement
| exec_block_statement
exec_block_statement: /* empty */
- | "restart-on-failure" ':' INTEGER
+ | "restart-on-exit" ':' INTEGER
{ CURINPUT.source.process.restart_on_death = $3; }
| "minimum-restart-delay" ':' INTEGER
{ CURINPUT.source.process.min_restart_delay = $3; }
Please sign in to comment.
Something went wrong with that request. Please try again.