2020-05-01 03:32:28 +02:00
|
|
|
+++
|
|
|
|
title = "Service"
|
|
|
|
+++
|
|
|
|
|
|
|
|
# Service Overview
|
|
|
|
|
|
|
|
`service` is the default `BaguetteOS` service manaager.
|
|
|
|
It can:
|
|
|
|
- start, stop and request the status of a service, <u>and its dependencies</u>
|
|
|
|
- remember the PID of a service
|
|
|
|
- configure a service based on OS-provided templates
|
|
|
|
- ports are auto-configured (unless specified)
|
|
|
|
- passwords are generated at service start-up
|
|
|
|
- system users and groups are created for each service
|
|
|
|
- databases are created, configured with generated users and passwords
|
|
|
|
- back-up the service data
|
|
|
|
|
|
|
|
|
|
|
|
## Current development
|
|
|
|
|
|
|
|
`service` lacks simple scripts for managing databases, has no backup integration and needs more templates.
|
|
|
|
|
2022-05-06 19:14:32 +02:00
|
|
|
### TODO: logging
|
2020-05-01 03:32:28 +02:00
|
|
|
|
|
|
|
Currently, logging is simply a pair of files created in `/var/log` for each service.
|
|
|
|
|
|
|
|
The naming convention is:
|
|
|
|
|
|
|
|
```zsh
|
|
|
|
/var/log/$servicename.$environment.{err,log}
|
|
|
|
```
|
|
|
|
|
2022-05-06 19:14:32 +02:00
|
|
|
### TODO: databases
|
2020-05-01 03:32:28 +02:00
|
|
|
|
2022-05-06 19:14:32 +02:00
|
|
|
Currently, there is only support for `postgresql`.
|
2020-05-01 03:32:28 +02:00
|
|
|
|
|
|
|
|
2022-05-06 19:14:32 +02:00
|
|
|
### TODO: backup
|
2020-05-01 03:32:28 +02:00
|
|
|
|
|
|
|
There is currently on back-up system.
|
|
|
|
A simple `backup` tool should be developed, allowing users to provide back-up endpoints.
|
|
|
|
|
|
|
|
Here is a quick overview of what we have in mind:
|
|
|
|
|
|
|
|
```zsh
|
|
|
|
# backup add ssh:example.com:/srv/backup
|
|
|
|
```
|
|
|
|
|
2022-05-06 19:14:32 +02:00
|
|
|
### TODO: templates
|
2020-05-01 03:32:28 +02:00
|
|
|
|
|
|
|
Templates should be added for these services:
|
|
|
|
- php-fpm
|
|
|
|
- certificates
|
|
|
|
- hackmd
|
|
|
|
- prosody
|
|
|
|
- wordpress
|
|
|
|
|
|
|
|
... and a lot more!
|