fix documentation

This commit is contained in:
Andrei Yankovich 2024-01-14 11:18:43 +01:00
parent 98f905485d
commit d70bb82185

View File

@ -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 <UserName>** 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 <patronum.h>