Added a run_as string in json to configure which user the app has to be run by.
This commit is contained in:
parent
f75e4d236c
commit
7426d1dfd7
1 changed files with 38 additions and 5 deletions
|
|
@ -30,6 +30,7 @@ public:
|
|||
string_map after;
|
||||
string_map env;
|
||||
std::string run_mode;
|
||||
std::string run_as;
|
||||
bool create_log = false;
|
||||
void printInfo(std::ostream &out);
|
||||
std::string getAfterString() const;
|
||||
|
|
@ -40,6 +41,7 @@ private:
|
|||
std::string program_name;
|
||||
std::string module_name;
|
||||
std::deque<std::string> args;
|
||||
std::string run_as;
|
||||
std::string working_dir;
|
||||
string_map after;
|
||||
string_map env;
|
||||
|
|
@ -56,12 +58,14 @@ public:
|
|||
void setEnv(string_map env);
|
||||
void setCreateLog(bool create_log);
|
||||
void setRunMode(std::string mode);
|
||||
void setRunAs(std::string run_as);
|
||||
void setFinished();
|
||||
void setRunning();
|
||||
void insertParent(std::shared_ptr<AppInfo> parent, State state);
|
||||
bool isParentDependencyCleared(std::osyncstream &out) const;
|
||||
std::string getModuleName() const;
|
||||
std::string getProgramName() const;
|
||||
std::string getRunAs() const;
|
||||
std::deque<std::string> getArgs() const;
|
||||
std::string getWorkingDir() const;
|
||||
string_map getEnv() const;
|
||||
|
|
|
|||
Loading…
Reference in a new issue