You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,24 @@
1
-
* 1.1.0
2
-
* FIX: fixed the bug in catching exit code of foregraound processes in "wait_any" mode
3
-
* FIX: now it ignors errors in the main exit hook
4
-
* ADD: on exiting from sub-process it tries to kill all possible child processes if any
5
-
* ADD: a new mode "boot" (`-B` command line option or `boot.*` files) that runs in the main namespace and results (like environment variables) are "visible" in all other sub-processes
6
-
* ADD: a new command line option `-F` that runs commands on the foreground (to run more than one foreground processes)
7
-
* ADD: a new command line option `-H` that runs commands on exiting
1
+
* 1.1.6
2
+
* FIX: now it ignores errors in the main exit hook
3
+
* ADD: more examples
4
+
* ADD: sha256 chaeck sum for the release
5
+
* 1.1.5
8
6
* ADD: new command line options `-v` and `--version` to print the version
9
7
* ADD: new command line options `-h` and `--help` to print a short help message
10
8
* ADD: new command line options `-w` and `--workdir` to set the directory with config files
9
+
* 1.1.4
10
+
* ADD: a new wait policy `wait_err` which waits for a first failed command
11
+
* ADD: a new stage "halt" (`-H` command line option or `halt.*` files) that runs on exit from the main process
12
+
* 1.1.3
13
+
* ADD: a new command line option `-F` that runs commands on the foreground (to run more than one foreground processes)
14
+
* 1.1.2
15
+
* ADD: on exiting from sub-process it tries to kill all possible child processes if any
16
+
* 1.1.1
17
+
* FIX: fixed the bug in catching exit code of foregraound processes in "wait_any" mode
18
+
* 1.1.0
19
+
* ADD: a new stage "boot" (`-B` command line option or `boot.*` files) that runs in the main namespace and results (like environment variables) are "visible" in all other sub-processes
11
20
* ADD: more ways to present configs:
12
21
* ./trc.d/{boot,sync,async,halt}.*
13
22
* ./trc.{boot,sync,async,halt}.*
14
23
* ADD: examples
15
24
* ADD: tests
16
-
* ADD: a new wait policy `wait_err` which waits for the first failed command
17
-
* CHANGE: supresses stderr for background processes
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ All commands can be specified in the command line if they are relatively simple,
32
32
if a more comprehensive scenario is needed. That's why it can be used as a simplest tool for managing
33
33
a group of process and be a lightweight replacement for solutions like [Supervisor](https://github.com/Supervisor/supervisor).
34
34
35
-
For instance, in Docker images when TrivialRC is used as an Entrypoint, it doesn't reveal itself by default,
35
+
For instance, in docker images when TrivialRC is used as an Entrypoint, it doesn't reveal itself by default,
36
36
does not affect any configuration and behaves absolutely transparently. So, you can add it into
37
37
any Dockerfiles which do not have an entrypoint yet and get by this the full control under processes
38
38
with fairly detailed logs of what's is going on inside a container. Please, take a look at [examples](https://github.com/vorakl/TrivialRC/tree/master/examples) for more information.
@@ -42,7 +42,7 @@ with fairly detailed logs of what's is going on inside a container. Please, take
42
42
Basically, all you need to install TrivialRC is download the latest release of the script from `http://vorakl.github.io/TrivialRC/trc`
43
43
and give it an execute permission. By default, it looks for configuration files in the same directory from which it was invoked but this behavior can be changed by setting a work directory (`-w|--workdir` parametr). So, if you are going to use configuration files and keep them in /etc/, then you would probably want to install the script to /etc/ as well and simply run it without specifying any parametrs.
44
44
Another option in this case could be to install the script in a more appropriate path but don't forget to specify `--workdir /etc` parametr every time when you invoke this rc system. Both options are possible and depend more on a particular use case.
45
-
For instance, in case of using in a Docker container, I personaly prefer to have all configuration in separate files in `trc.d/` sub-directory and copy it together with the script in `/etc/` .
45
+
For instance, in case of using in a docker container, I personaly prefer to have all configuration in separate files in `trc.d/` sub-directory and copy it together with the script in `/etc/` .
46
46
47
47
### The installation on top of CentOS Linux base image
48
48
@@ -104,14 +104,14 @@ To increase the verbosity of rc system there are provided a few environment vari
104
104
105
105
## The wait policy
106
106
107
-
The rc system reacts differentely when one of controlled processes finishes.
108
-
Depending on the value of *RC_WAIT_POLICY* environment variable it make a decision when exactly it should stop itself.
107
+
The rc system reacts differently when one of controlled processes finishes.
108
+
Depending on the value of *RC_WAIT_POLICY* environment variable it makes a decision when exactly it should stop itself.
109
109
The possible values are:
110
110
111
111
**wait_all* <br />
112
112
stops after exiting all commands and doesn't matter wether they are synchronous or asynchronous
113
113
**wait_any*[default] <br />
114
-
stops after exiting any of background commands and if no of a foreground command are working at that moment. It makes sense to use this mode if all commands are asynchronous (background)
114
+
stops after exiting any of background commands and if there are no foreground commands working at that moment. It makes sense to use this mode if all commands are asynchronous (background)
115
115
**wait_err* <br />
116
116
stops after the first failed command. It make sense to use this mode with synchronous (foreground) commands only. For example, if you need to iterate synchronously over the list of command and to stop only if one of them has failed.
0 commit comments