mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 6e08e5cb5c into merged_master (Bitcoin PR bitcoin/bitcoin#17127)
This commit is contained in:
commit
8df89b56d5
9 changed files with 57 additions and 15 deletions
|
|
@ -470,11 +470,6 @@ void SetupServerArgs(ArgsManager& argsman)
|
|||
#if HAVE_SYSTEM
|
||||
argsman.AddArg("-startupnotify=<cmd>", "Execute command on startup.", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
|
||||
argsman.AddArg("-shutdownnotify=<cmd>", "Execute command immediately before beginning shutdown. The need for shutdown may be urgent, so be careful not to delay it long (if the command doesn't require interaction with the server, consider having it fork into the background).", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
|
||||
#endif
|
||||
#ifndef WIN32
|
||||
argsman.AddArg("-sysperms", "Create new files with system default permissions, instead of umask 077 (only effective with disabled wallet functionality)", ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
|
||||
#else
|
||||
hidden_args.emplace_back("-sysperms");
|
||||
#endif
|
||||
argsman.AddArg("-txindex", strprintf("Maintain a full transaction index, used by the getrawtransaction rpc call (default: %u)", DEFAULT_TXINDEX), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
|
||||
argsman.AddArg("-trim_headers", strprintf("Trim old headers in memory (by default older than 2 epochs), removing blocksigning and dynafed-related fields. Saves memory, but blocks us from serving blocks or headers to peers, and removes trimmed fields from some JSON RPC outputs. (default: false)"), ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
|
||||
|
|
@ -877,10 +872,6 @@ bool AppInitBasicSetup(const ArgsManager& args)
|
|||
}
|
||||
|
||||
#ifndef WIN32
|
||||
if (!args.GetBoolArg("-sysperms", false)) {
|
||||
umask(077);
|
||||
}
|
||||
|
||||
// Clean shutdown on SIGTERM
|
||||
registerSignalHandler(SIGTERM, HandleSIGTERM);
|
||||
registerSignalHandler(SIGINT, HandleSIGTERM);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue