From 5e843462eb0c5636f506ca6fcd402686ac68c47b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 May 2015 14:28:28 +0300 Subject: move service mgmt utils to libservice/utils/ --- utils/uninstall_service.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 utils/uninstall_service.cpp (limited to 'utils/uninstall_service.cpp') diff --git a/utils/uninstall_service.cpp b/utils/uninstall_service.cpp deleted file mode 100644 index 8497fbf..0000000 --- a/utils/uninstall_service.cpp +++ /dev/null @@ -1,32 +0,0 @@ -/** - * \file - * \author Egor Tensin - * \date 2015 - * \copyright This file is licensed under the terms of the MIT License. - * See LICENSE.txt for details. - */ - -#include "libservice/all.hpp" - -#include -#include - -int main(int argc, char* argv[]) -{ - if (argc != 2) - { - std::cout << "Usage: " << argv[0] << " NAME\n"; - return 1; - } - - try - { - libservice::Service::open(libservice::ServiceManager::open(), argv[1]).uninstall(); - } - catch (const std::exception& e) - { - std::cerr << e.what() << "\n"; - return 1; - } - return 0; -} -- cgit v1.2.3