mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
c7355b19aa
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5452 As suggested in another diff, this diff updates the language we use to describe the osquery licensing terms. We are changing all instances of //This source code is licensed as defined on the LICENSE file found in the root directory of this source tree.// to //This source code is licensed in accordance with the terms specified in the LICENSE file found in the root directory of this source tree.// We accomplish this with a codemod: $ codemod -md xplat/osquery/oss --extensions cpp,h,in,py,sh,mm,ps1 "(.\s+)This source code is licensed as defined on the LICENSE file found in the(.*)root directory of this source tree\." "\1This source code is licensed in accordance with the terms specified in\2the LICENSE file found in the root directory of this source tree." Reviewed By: fmanco Differential Revision: D14131290 fbshipit-source-id: 52c90da342263e2a80f5a678ecd760c19cf7513e
37 lines
1.0 KiB
C++
37 lines
1.0 KiB
C++
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed in accordance with the terms specified in
|
|
* the LICENSE file found in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <osquery/utils/status/status.h>
|
|
|
|
namespace osquery {
|
|
|
|
/**
|
|
* @brief Install osqueryd as a service for the platform.
|
|
*
|
|
* Currently, this is only used by Windows. POSIX platforms use a companion
|
|
* script called osquerycrl to move files and install launch daemons or init
|
|
* scripts/systemd units.
|
|
*
|
|
* This disconnect of install flows is a limitation. The POSIX install flows
|
|
* should be refactored into install/uninstall service methods.
|
|
*/
|
|
Status installService(const std::string& path);
|
|
|
|
/// See installService.
|
|
Status uninstallService();
|
|
|
|
/// Begin the platform-agnostic shell and daemon initialization.
|
|
int startOsquery(int argc,
|
|
char* argv[],
|
|
std::function<void()> shutdown = nullptr);
|
|
} // namespace osquery
|