1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-09-20 18:29:19 +03:00

Implement foreground mode for Unix services

Add '--foreground' command line parameter. When provided, it prevents
Unix service from running in daemon mode.
Update help message.
This commit is contained in:
Mikhail Pridushchenko
2017-06-22 18:41:47 +03:00
committed by Joshua Perry
parent d4d17549c4
commit 825931e11c
3 changed files with 8 additions and 1 deletions

View File

@ -2849,6 +2849,12 @@ RESTART_PROCESS:
}
}
}
else if (argc >= 3 && StrCmpi(argv[1], UNIX_SVC_ARG_START) == 0 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0)
{
InitMayaqua(false, false, argc, argv);
UnixExecService(name, start, stop);
FreeMayaqua();
}
else
{
// Start normally