set uid timeout
Allow the timeout to be changed allowing more time before dropping root privledges
This commit is contained in:
parent
960f94bfb6
commit
ca0f0c4086
3 changed files with 5 additions and 2 deletions
|
|
@ -103,7 +103,8 @@ var defaults = {
|
|||
setuid: {
|
||||
enabled: false,
|
||||
"group": "users",
|
||||
"user": "nobody"
|
||||
"user": "nobody",
|
||||
"timeout": 15
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -11,5 +11,5 @@ if (Config.get("setuid.enabled")) {
|
|||
console.log('Cowardly refusing to keep the process alive as root.');
|
||||
process.exit(1);
|
||||
}
|
||||
}, 15);
|
||||
}, (Config.get("setuid.timeout")));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue