summaryrefslogtreecommitdiffstats
path: root/logforwarder/src/apps/vespa-otelcol-start/child-handler.h
blob: 4fd72fc7682ca25c735ca94faad694b739586d27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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();
};