feat: Add 2 and update 6 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 1m33s
Build-Test-Publish / build (linux/arm64) (push) Successful in 3m12s

This commit is contained in:
Your Name
2025-09-20 14:34:03 +12:00
parent c8493b92a0
commit a18e3508ce
8 changed files with 262 additions and 7 deletions

View File

@@ -44,6 +44,14 @@ namespace dropshell
bool stop_service(const std::string &server, const std::string &service)
{
// Check if server is disabled
if (gConfig().is_server_disabled(server))
{
warning << "Server '" << server << "' is disabled. Cannot stop services." << std::endl;
info << "Use 'dropshell enable " << server << "' to re-enable this server." << std::endl;
return false;
}
ServerConfig server_env(server);
if (!server_env.is_valid())
{