Commit Graph

98 Commits

Author SHA1 Message Date
3d49ca43be Improved groups creation and edition. 2020-01-04 09:08:55 +01:00
c8c0be9804 WIP for on-the-fly users. 2019-11-17 20:06:42 +01:00
ab9a76326e %file configure: can be set. 2019-11-16 21:41:12 +01:00
1ec624db41 Naming convention. 2019-11-16 21:29:55 +01:00
671bf44dc4 Template additions. 2019-11-16 21:28:58 +01:00
8d5839724b templates can now raise exceptions. 2019-11-16 16:08:52 +01:00
00dc153121 provider=none forces not using a token. 2019-11-16 13:25:00 +01:00
1a90b285d2 Non-runnables are being setup automatically.
In practice, they’re being setup after their last token provider has
been started.
2019-11-11 20:52:15 +01:00
ef7521c5b6 Imprroves postgresql’s readiness-check-command. 2019-11-11 19:02:04 +01:00
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
c43eb7af42 Grooming.
Fixes some issues introduced in the last commit.
2019-11-10 19:25:45 +01:00
d3fe317665 Grooming, service reload, Service#reload.
`reload-command:` can be defined in service definition `.spec` files.
2019-11-09 21:52:43 +01:00
f3633eba63 Minor UI edition for consistency. 2019-11-09 14:49:54 +01:00
4a03200130 Improved variable expansion in service definitions. 2019-11-09 14:47:29 +01:00
5852a1b818 Improved UI a bit. 2019-11-09 13:35:25 +01:00
c2730bdd71 Improved service removal. 2019-11-08 15:54:44 +01:00
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
Philippe PITTOLI
10cd792373 Delete the PID file when stopping the service. 2019-11-07 21:03:26 +01:00
1c80a80158 Custom names for services.
Services must be created as `[env/]custom_name` and be passed a `type=`
parameter when created.
2019-11-07 18:08:57 +01:00
184db7db1e waitpid() called when stopping services. 2019-10-29 14:22:13 +01:00
7fdccfa1b2 service status --verbose 2019-10-29 13:08:58 +01:00
cd6fd4c81f Improved service status a bit. 2019-10-29 12:48:36 +01:00
6ee52f5baa Ports management overhaul. 2019-10-29 12:32:49 +01:00
3349c3f251 WIP optional tokens. 2019-10-28 14:06:05 +01:00
55dbfa7999 Some services now require a domain name to be provided. 2019-10-28 13:22:15 +01:00
3a3db5bde1 Grooming. 2019-10-28 06:37:57 +01:00
86f3294689 gen-config: 'service' replaces several variables. 2019-10-28 06:17:45 +01:00
0f89791a76 Debug message removed. 2019-10-28 06:08:58 +01:00
36829e8664 Grooming. 2019-10-28 06:08:58 +01:00
c80360e380 Grooming. 2019-10-28 06:08:58 +01:00
9a74130efa wip, stuff 2019-10-28 06:08:58 +01:00
Philippe PITTOLI
358c7441e6 first attempt at adding the nginx service 2019-10-28 06:08:58 +01:00
19f825dba4 Fixes service loading issue in gen-config. 2019-10-27 22:14:11 +01:00
ff4c1cc08d WIP consumers in gen-config. 2019-10-27 22:11:07 +01:00
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
7b02cffb9e %check entries are now called %pre-start hooks. 2019-10-26 14:50:03 +02:00
27c9a525f6 Service#root, Environment#root. 2019-10-26 14:00:11 +02:00
1f9264f97b Improved service del, service stop, grooming. 2019-10-25 18:40:27 +02:00
21e6943868 service del-environment 2019-10-25 17:59:53 +02:00
1bc9181caa Internal changes in gen-config.
Most data are now read from service files instead of the process’
environment. Some environment variables are still being used to identify
the target service, however.
2019-10-25 15:14:56 +02:00
fe4bce0a44 gen-config: grooming 2019-10-25 13:21:22 +02:00
add94be507 service del takes service ids as parameters 2019-10-25 13:15:44 +02:00
bf2075be9e get-port has a proper CLI. 2019-10-25 13:10:20 +02:00
e4741daeb3 service status: full id used in lists at all times. 2019-10-25 12:36:30 +02:00
5501c62f56 New environments don’t have a name field in their specs. 2019-10-25 12:35:30 +02:00
0fa6ec01c9 Environment#name is obtained from filename and not specs. 2019-10-25 12:34:21 +02:00
479dffc6a0 Fixes and improves service show’s CLI. 2019-10-25 12:28:39 +02:00
a3c32905ee ServiceDefinition#name based on filename and not specs. 2019-10-25 12:24:25 +02:00
bdeb23c275 Better handling of commands. 2019-10-24 20:31:38 +02:00