Skip to content

Commit c6bd871

Browse files
author
Oleksii Tsvietnov
committed
Add sha256 checksum
1 parent cf1527c commit c6bd871

File tree

6 files changed

+24
-43
lines changed

6 files changed

+24
-43
lines changed

CHANGELOG.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff 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
86
* ADD: new command line options `-v` and `--version` to print the version
97
* ADD: new command line options `-h` and `--help` to print a short help message
108
* 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
1120
* ADD: more ways to present configs:
1221
* ./trc.d/{boot,sync,async,halt}.*
1322
* ./trc.{boot,sync,async,halt}.*
1423
* ADD: examples
1524
* ADD: tests
16-
* ADD: a new wait policy `wait_err` which waits for the first failed command
17-
* CHANGE: supresses stderr for background processes

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Oleksii Tsvietnov, me@vorakl.name
3+
Copyright (c) 2016, 2017 Oleksii Tsvietnov, me@vorakl.name
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SED_BIN ?= sed
77
PWD_BIN ?= pwd
88
BASENAME_BIN ?= basename
99
GIT_BIN ?= git
10+
SHA256SUM_BIN ?= sha256sum
1011

1112
# -------------------------------------------------------------------------
1213
# Set a default target
@@ -57,6 +58,7 @@ push:
5758

5859
publish:
5960
@${CP_BIN} -f trc docs/
61+
@(cd docs && ${SHA256SUM_BIN} trc > trc.sha256)
6062

6163
cirelease: test setver settag publish
6264
@${GIT_BIN} add .

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ All commands can be specified in the command line if they are relatively simple,
3232
if a more comprehensive scenario is needed. That's why it can be used as a simplest tool for managing
3333
a group of process and be a lightweight replacement for solutions like [Supervisor](https://github.com/Supervisor/supervisor).
3434

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,
3636
does not affect any configuration and behaves absolutely transparently. So, you can add it into
3737
any Dockerfiles which do not have an entrypoint yet and get by this the full control under processes
3838
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
4242
Basically, all you need to install TrivialRC is download the latest release of the script from `http://vorakl.github.io/TrivialRC/trc`
4343
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.
4444
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/` .
4646

4747
### The installation on top of CentOS Linux base image
4848

@@ -104,14 +104,14 @@ To increase the verbosity of rc system there are provided a few environment vari
104104

105105
## The wait policy
106106

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.
109109
The possible values are:
110110

111111
* *wait_all* <br />
112112
stops after exiting all commands and doesn't matter wether they are synchronous or asynchronous
113113
* *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)
115115
* *wait_err* <br />
116116
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.
117117
* *wait_forever* <br />

docs/trc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
# Copyright (c) 2016, 2017 by Oleksii Tsvietnov, me@vorakl.name
66
trc_version="v1.1.5"
77

8-
# --[ Environment variables ]--
9-
# RC_DEBUG (true|false) [false]
10-
# Prints out all commands which are being executed
11-
# RC_VERBOSE (true|false) [false]
12-
# Prints out service information
13-
# RC_VERBOSE_EXTRA (true|false) [false]
14-
# Prints out additional service information
15-
# RC_WAIT_POLICY (wait_all|wait_any|wait_forever) [wait_any]
16-
# - wait_all quits after exiting the last command (back- or foreground)
17-
# - wait_any quits after exiting any command (including zero commands)
18-
# - wait_forever will be waiting forever after exiting all commands.
19-
# Usefull in case of daemons which are detaching and exiting
20-
# - wait_err quits after the first failed command
21-
228
set +e # Do not exit on errors by default
239
if [[ "${RC_DEBUG}" = "true" ]]; then
2410
set -x # Turns on Debug mode

trc

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
# Copyright (c) 2016, 2017 by Oleksii Tsvietnov, me@vorakl.name
66
trc_version="v1.1.5"
77

8-
# --[ Environment variables ]--
9-
# RC_DEBUG (true|false) [false]
10-
# Prints out all commands which are being executed
11-
# RC_VERBOSE (true|false) [false]
12-
# Prints out service information
13-
# RC_VERBOSE_EXTRA (true|false) [false]
14-
# Prints out additional service information
15-
# RC_WAIT_POLICY (wait_all|wait_any|wait_forever) [wait_any]
16-
# - wait_all quits after exiting the last command (back- or foreground)
17-
# - wait_any quits after exiting any command (including zero commands)
18-
# - wait_forever will be waiting forever after exiting all commands.
19-
# Usefull in case of daemons which are detaching and exiting
20-
# - wait_err quits after the first failed command
21-
228
set +e # Do not exit on errors by default
239
if [[ "${RC_DEBUG}" = "true" ]]; then
2410
set -x # Turns on Debug mode

0 commit comments

Comments
 (0)