Commit Graph

21 Commits (2e66b44e5880f417b35e0edf95852c5c2fea3526)

Author SHA1 Message Date
Luka Vandervelden 2e66b44e58 start-as-root option added in service spec files. 2020-01-04 16:26:05 +01:00
Luka Vandervelden 5347ec4a62 spec-defined users and groups. 2020-01-04 16:15:44 +01:00
Luka Vandervelden ab9a76326e %file configure: can be set. 2019-11-16 21:41:12 +01:00
Luka Vandervelden f2507e2dd0 readiness-check-command: implemented.
The 'postgresql' service is a good example of how this is used in
practice.
2019-11-11 16:52:40 +01:00
Luka Vandervelden c43eb7af42 Grooming.
Fixes some issues introduced in the last commit.
2019-11-10 19:25:45 +01:00
Luka Vandervelden d3fe317665 Grooming, `service reload`, `Service#reload`.
`reload-command:` can be defined in service definition `.spec` files.
2019-11-09 21:52:43 +01:00
Luka Vandervelden 87929be026 Updating service definitions format.
THIS IS A BREAKING CHANGE

Hopefully, this change will make it easier to remove data on service
removal, but also to export and backup service data and to add
per-service system users.

A few obsolete service definitions have also been updated to the new
format.

Testing is still incomplete, you may want to wait a few commits before
using this.
2019-11-08 14:36:59 +01:00
Philippe PITTOLI e0e81d8581 Services can now be "Non Runnable". 2019-11-08 01:08:57 +01:00
Luka Vandervelden 6ee52f5baa Ports management overhaul. 2019-10-29 12:32:49 +01:00
Luka Vandervelden 3349c3f251 WIP optional tokens. 2019-10-28 14:06:05 +01:00
Luka Vandervelden 55dbfa7999 Some services now require a domain name to be provided. 2019-10-28 13:22:15 +01:00
Luka Vandervelden f53db2c6cc Service definitions get some sugar.
- %configuration template target
  - %directory target
  - Services are started in their “root directory” if no “directory”
    option is provided.
2019-10-26 15:24:22 +02:00
Luka Vandervelden 7b02cffb9e %check entries are now called %pre-start hooks. 2019-10-26 14:50:03 +02:00
Luka Vandervelden a3c32905ee ServiceDefinition#name based on filename and not specs. 2019-10-25 12:24:25 +02:00
Luka Vandervelden 46eb8fa9c4 Exception catching. 2019-10-24 12:59:19 +02:00
Luka Vandervelden 794ffe16fa Bugfixes related to a dependency’s API changes. 2019-10-19 18:24:38 +02:00
Luka Vandervelden 3c20783f91 Updated dependencies and code for new Crystal version. 2019-10-19 18:08:34 +02:00
Luka Vandervelden 75e500adcf SpecFileParser update. 2019-08-15 17:29:52 +02:00
Luka Vandervelden efe2c0e964 Complete removal of YAML files. 2019-08-10 17:16:24 +02:00
Luka Vandervelden 3769303ad5 WIP support for .spec service files. 2019-08-08 17:12:23 +02:00
Luka Vandervelden 5eb0849abd Project organisation for WIP separate binaries.
- The idea would be to allow running specific commands from SUID
    binaries when unpriviledged users should be able to run them. Such
    commands include getting services status, which need root
    priviledges to be implemented but shouldn’t be required by users.
  - Because the repository now builds several binaries, src/main.cr is
    now src/service.cr and a WIP src/status.cr has been added.
  - The `status` binary will likely be installed in libexec in the
    future, with the SUID bit set.
2019-06-09 18:08:59 +02:00