Skip to content
Snippets Groups Projects
Commit 3d4cad41 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

let svctl/dbctl check the service

parent 004bcac5
No related branches found
No related tags found
No related merge requests found
...@@ -457,7 +457,7 @@ int ssexec_start(int argc, char const *const *argv,char const *const *envp,ssexe ...@@ -457,7 +457,7 @@ int ssexec_start(int argc, char const *const *argv,char const *const *envp,ssexe
{ {
char const *name = *argv ; char const *name = *argv ;
logname = 0 ; logname = 0 ;
printf("name::%s\n",name) ;
ss_resolve_t res = RESOLVE_ZERO ; ss_resolve_t res = RESOLVE_ZERO ;
pres = &res ; pres = &res ;
if (!ss_resolve_check(info,name,SS_RESOLVE_SRC)) strerr_dief2x(111,name,": is not enabled") ; if (!ss_resolve_check(info,name,SS_RESOLVE_SRC)) strerr_dief2x(111,name,": is not enabled") ;
...@@ -468,11 +468,7 @@ int ssexec_start(int argc, char const *const *argv,char const *const *envp,ssexe ...@@ -468,11 +468,7 @@ int ssexec_start(int argc, char const *const *argv,char const *const *envp,ssexe
continue ; continue ;
} }
else if (!res.disen) strerr_dief2x(111,name,": is not enabled") ; else if (!res.disen) strerr_dief2x(111,name,": is not enabled") ;
if (res.pid && !RELOAD)
{
VERBO1 strerr_warni2x(name,": is already up") ;
continue ;
}
logname = get_rstrlen_until(name,SS_LOG_SUFFIX) ; logname = get_rstrlen_until(name,SS_LOG_SUFFIX) ;
if ((RELOAD > 1) && (logname > 0)) strerr_dief1x(111,"-R signal is not allowed to a logger") ; if ((RELOAD > 1) && (logname > 0)) strerr_dief1x(111,"-R signal is not allowed to a logger") ;
if (RELOAD > 1) res.reload = 1 ; if (RELOAD > 1) res.reload = 1 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment