mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-03 08:21:46 +00:00
enable StopAllServices
Signed-off-by: 许云通 <scorpion_xyt@outlook.com>
This commit is contained in:
parent
9a16cfd886
commit
42add2e78b
@ -317,10 +317,10 @@ static int FilterService(const Service *service, const char **exclude, int size)
|
||||
{
|
||||
for (int i = 0; i < size; i++) {
|
||||
if (exclude[i] != NULL && strcmp(service->name, exclude[i]) == 0) {
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void DoStopAllServices(const struct CmdArgs *ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user