You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
672B

  1. /*
  2. * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved.
  3. *
  4. * This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit).
  5. *
  6. * Use of this source code is governed by MIT license that can be found in the
  7. * LICENSE file in the root of the source tree. All contributing project authors
  8. * may be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #ifndef ZLMEDIAKIT_SYSTEM_H
  11. #define ZLMEDIAKIT_SYSTEM_H
  12. #include <string>
  13. class System {
  14. public:
  15. static std::string execute(const std::string &cmd);
  16. static void startDaemon(bool &kill_parent_if_failed);
  17. static void systemSetup();
  18. };
  19. #endif //ZLMEDIAKIT_SYSTEM_H