From 346ef768b1b911a89e3d9bc1b03b442fd85d3739 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 6 Feb 2010 18:12:12 +0000 Subject: introduced posixDaemon as DaemonService for posix targets some dependency cleanups --- src/win32/winService.cpp | 25 +++++++++++++++++++++++++ src/win32/winService.h | 8 ++++++++ 2 files changed, 33 insertions(+) (limited to 'src/win32') diff --git a/src/win32/winService.cpp b/src/win32/winService.cpp index f796fcf..e39fe56 100644 --- a/src/win32/winService.cpp +++ b/src/win32/winService.cpp @@ -169,4 +169,29 @@ void WinService::reportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode) SetServiceStatus(status_handle_, &status_); } +void WinService::initPrivs(std::string const& username, std::string const& groupname) +{ +// nothing here +} + +void WinService::dropPrivs() +{ +// nothing here +} + +void WinService::chroot(std::string const& dir) +{ +// nothing here +} + +void WinService::daemonize() +{ +// nothing here +} + +bool WinService::isDaemonized() +{ + return true; +} + #endif diff --git a/src/win32/winService.h b/src/win32/winService.h index ed05367..ecba55d 100644 --- a/src/win32/winService.h +++ b/src/win32/winService.h @@ -52,6 +52,12 @@ public: void reportStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode); int handleCtrlSignal(int sig, const std::string& msg); + void initPrivs(std::string const& username, std::string const& groupname); + void dropPrivs(); + void chroot(std::string const& dir); + void daemonize(); + bool isDaemonized(); + private: WinService() {}; ~WinService() {}; @@ -62,6 +68,8 @@ private: SERVICE_STATUS_HANDLE status_handle_; }; +typedef class WinService DaemonService; + #endif #endif -- cgit v1.2.3