Skip to content

Commit

Permalink
fixed service startup configuration for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wsobel committed Jun 4, 2024
1 parent 12215c7 commit df6e8b2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mtconnect/configuration/service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,9 +575,8 @@ namespace mtconnect {
boost::optional<std::string> command;
boost::optional<std::string> config;

const char *argp[3] = {"run", nullptr, nullptr};
argp[1] = (char *)configFile;
auto options = g_service->parseOptions(1, argp, command, config);
const char *argp[3] = {"agent", "run", (const char *) configFile};
auto options = g_service->parseOptions(3, argp, command, config);
g_service->initialize(options);

// Report running status when initialization is complete.
Expand Down

0 comments on commit df6e8b2

Please sign in to comment.