now winix can demonize itself

parameter in the config: demonize (default: true)
 


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@669 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-10-24 19:26:54 +00:00
parent 9c34cb5862
commit c6473f20dc
5 changed files with 213 additions and 171 deletions

View File

@@ -21,9 +21,14 @@ class Config
{
public:
// name of the config file (full path can be)
// name of the config file
// this is the parameter passed to winix programm
std::string config_file;
// start as a demon (in the background)
// default: true
bool demonize;
// system user name (to which drop privileges)
// used only if winix is started as the root
std::string user;
@@ -47,6 +52,8 @@ public:
int log_level;
// logging to stdout too
// only if demonize is 'false'
// default: false
bool log_stdout;
// how many requests should be logged in the same time