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 authored and Joshua Perry committed 2018-08-06 08:51:13 -06:00
1 parent d4d17549c4
commit 825931e11c
3 files changed
+8 -1

No files matched your search

+1
View File
@@ -141,6 +141,7 @@ typedef void (SERVICE_FUNCTION)();
#define UNIX_SVC_ARG_STOP "stop"
#define UNIX_SVC_ARG_EXEC_SVC "execsvc"
#define UNIX_ARG_EXIT "exit"
#define UNIX_SVC_ARG_FOREGROUND "--foreground"
#define UNIX_SVC_MODE_START 1
#define UNIX_SVC_MODE_STOP 2