Commit Graph

18 Commits (61c9f33f8918840c61a17fd78d7d79a4ecce5bba)

Author SHA1 Message Date
Luka Vandervelden 61c9f33f89 Sources split. 2019-06-09 16:59:05 +02:00
Luka Vandervelden 21f8d2d7d2 Service definitions can export environment variables. 2019-06-09 15:20:36 +02:00
Luka Vandervelden 5b864dcb58 evaluate()’s substitutions are now global. 2019-06-09 15:09:30 +02:00
Luka Vandervelden 73abf06a65 Improved checks.
- Environments can have checks, that are run before the service’s
    checks.
  - Directories can now be checked as well as files.
  - Failing checks now stop the start process with a Service::Exception.
  - Some variable substitution is done in check commands and tests.
  - Some environment variables related to the environment to run the
    service in are also exported.
2019-06-09 14:54:34 +02:00
Luka Vandervelden b17a258bc8 Improved error management on environment reading. 2019-06-09 13:51:29 +02:00
Luka Vandervelden 52e4bce548 “Native” environment type renamed to “Prefix”. 2019-06-09 13:50:49 +02:00
Luka Vandervelden 0378d43224 Pre-start checks/scripts can be defined. 2019-06-09 02:22:58 +02:00
Luka Vandervelden 5aadf3c7ed Service#summary cleaned a bit.
Not provided tokens will also be printed in red.
2019-06-08 19:24:52 +02:00
Luka Vandervelden 9a93937176 Grooming.
- Service#running?(pid_dir) added.
  - No attempt to stop services not running is being made by `stop`
    anymore.
2019-06-08 19:12:23 +02:00
Luka Vandervelden e331828c8b Reverse dependency tree.
- `stop` uses it to stop services that depend upon something that has
    to be stopped.
2019-06-08 19:01:31 +02:00
Luka Vandervelden dddf285046 UI update.
- `start` and `stop` now take service ids in parameter and can take
    multiple of them.
  - Errors are displayed properly (instead of “index out of bounds” or
    “nil assertion failed”) when invalid ids are provided on the CLI for
    `start` and `stop`.
2019-06-08 18:46:53 +02:00
Luka Vandervelden 3e8a1d2ab2 Grooming related to side-effects directories. 2019-06-08 18:25:08 +02:00
Luka Vandervelden f858a9aa11 Dependency trees.
- Were tested for `start` and seem to work fine with them.
  - `stop` still ignores them compteley at the moment. We’ll need to
    remember what has been started as a dependency and what has not to
    make `stop` work with reverse-dependency-trees.
2019-06-08 18:16:23 +02:00
Luka Vandervelden 36668ed148 Application name in help messages. 2019-06-08 03:06:26 +02:00
Luka Vandervelden 69ecadaefd TODOs and --help. 2019-06-08 03:04:11 +02:00
Luka Vandervelden efde03eb79 Internal improvements related to PID files. 2019-06-08 02:50:38 +02:00
Luka Vandervelden c77d931493 shard.yml and test .empty files added. 2019-06-08 02:33:14 +02:00
Luka Vandervelden 2dd3fe7dd6 Initial commit. 2019-06-08 02:21:31 +02:00