From 1a68b26bb3070d4f33f2b209a5cbdc28df161962 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Thu, 11 Jun 2020 17:11:15 +1100 Subject: [PATCH] please remove @build field even for [stop] section framboise! --- src/lib66/parser_utils.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib66/parser_utils.c b/src/lib66/parser_utils.c index 11074907..540766b9 100644 --- a/src/lib66/parser_utils.c +++ b/src/lib66/parser_utils.c @@ -352,8 +352,6 @@ int check_mandatory(sv_alltype *service, section_t *sasection) if (sasection->idx[SECTION_STOP]) { - if (service->type.oneshot.down.build < 0) - log_warn_return(LOG_EXIT_ZERO,"key @build at section [stop] must be set") ; if ((service->type.oneshot.down.build == BUILD_CUSTOM) && (service->type.oneshot.down.shebang < 0)) log_warn_return(LOG_EXIT_ZERO,"custom build asked on section [stop] -- key @shebang must be set") ; if (service->type.oneshot.down.exec < 0) @@ -370,8 +368,6 @@ int check_mandatory(sv_alltype *service, section_t *sasection) if (sasection->idx[SECTION_STOP]) { - if (service->type.classic_longrun.finish.build < 0) - log_warn_return(LOG_EXIT_ZERO,"key @build at section [stop] must be set") ; if ((service->type.classic_longrun.finish.build == BUILD_CUSTOM) && (service->type.classic_longrun.finish.shebang < 0)) log_warn_return(LOG_EXIT_ZERO,"custom build asked on section [stop] -- key @shebang must be set") ; if (service->type.classic_longrun.finish.exec < 0) -- GitLab