From d70bb8218504aa16002d2db2f3c8184957a5c3c3 Mon Sep 17 00:00:00 2001 From: EndrII Date: Sun, 14 Jan 2024 11:18:43 +0100 Subject: [PATCH] fix documentation --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 27ae6eb..a639e91 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ Becouse This library offers easy interface to control your demons likewise the m * Auto create a Controller of your Service. ## Deffault sopprted commands + * install - deploys your daemon into your host system. This command deploy service for root user if you want to deploy service for specify user just use **-install ** command (root right required) * unistall - removes old deployed daemon. (root right required) * start - starts your service @@ -56,8 +57,9 @@ public: } - void onStart() override { - // call on server started + bool onStart() override { + // call on server started + return true; } void onStop() override { @@ -96,6 +98,9 @@ int main(int argc, char **argv) { ``` ### Controller +Dy default the service can works as acontroller, But some times we need to create a simple controller app for exists our service. +For example universal controller for all services of your comapny. The all services that based on Patronum library compatible with each other due to the fact that the command configuration is on the side of the service itself, and not the controller. + ```cpp #include