summaryrefslogtreecommitdiffstats
path: root/logforwarder/src/apps/vespa-otelcol-start/child-handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'logforwarder/src/apps/vespa-otelcol-start/child-handler.h')
-rw-r--r--logforwarder/src/apps/vespa-otelcol-start/child-handler.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/logforwarder/src/apps/vespa-otelcol-start/child-handler.h b/logforwarder/src/apps/vespa-otelcol-start/child-handler.h
new file mode 100644
index 00000000000..4fd72fc7682
--- /dev/null
+++ b/logforwarder/src/apps/vespa-otelcol-start/child-handler.h
@@ -0,0 +1,18 @@
+// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+#pragma once
+
+#include "cf-handler.h"
+#include <string>
+
+class ChildHandler {
+private:
+ bool _childRunning = false;
+ bool _terminating = false;
+ int _childPid = 0;
+public:
+ ChildHandler();
+ ~ChildHandler();
+ void startChild(const std::string &progPath, const std::string &cfFile);
+ void stopChild();
+ bool checkChild();
+};