diff options
author | Valery Piashchynski <[email protected]> | 2021-04-18 23:51:27 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-04-18 23:51:27 +0300 |
commit | 4931146022a644a69e73f241e094966bdb5cb51f (patch) | |
tree | 19591af9a6a6d226640a680c2196143122324882 /tests/plugins/service | |
parent | f5210c3f0739c03e9284c857d65dde3d97f3d84d (diff) |
- Add test binaries/exe for the Linux/Windows
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/service')
-rw-r--r-- | tests/plugins/service/configs/.rr-service-init.yaml | 27 | ||||
-rw-r--r-- | tests/plugins/service/test_files/loop.php (renamed from tests/plugins/service/php/loop.php) | 0 | ||||
-rwxr-xr-x | tests/plugins/service/test_files/test_binary | bin | 0 -> 1363968 bytes |
3 files changed, 14 insertions, 13 deletions
diff --git a/tests/plugins/service/configs/.rr-service-init.yaml b/tests/plugins/service/configs/.rr-service-init.yaml index 9ca0bde5..1b9cf754 100644 --- a/tests/plugins/service/configs/.rr-service-init.yaml +++ b/tests/plugins/service/configs/.rr-service-init.yaml @@ -1,21 +1,22 @@ service: - some_service_1: #<-- user defined name - command: "php php/loop.php" # command, can be any command (php, script, binary, exe)" - process_num: 10 # number of copies (processes) - exec_timeout: 5s # how long process allowed to run (until restart or stop), default - unlimited - restart_after_exit: false # run and restart after finish - restart_delay: 1s # delay between binary/script restarts, default 1minute -# some_service_2: # exec_timeout is not set, by default - unlimited -# command: "./test_binary" -# process_num: 1 -# restart_after_exit: false -# restart_delay: 10 # <--- ignored when restart_after_exit is false + some_service_1: + command: "php test_files/loop.php" + process_num: 1 + exec_timeout: 5s + restart_after_exit: true + restart_delay: 1s + some_service_2: + command: "test_files/test_binary" + process_num: 1 + restart_after_exit: true + restart_delay: 1s + exec_timeout: 5s logs: - level: debug + level: info mode: raw endure: grace_period: 120s print_graph: false - log_level: debug + log_level: error diff --git a/tests/plugins/service/php/loop.php b/tests/plugins/service/test_files/loop.php index 6ba488ef..6ba488ef 100644 --- a/tests/plugins/service/php/loop.php +++ b/tests/plugins/service/test_files/loop.php diff --git a/tests/plugins/service/test_files/test_binary b/tests/plugins/service/test_files/test_binary Binary files differnew file mode 100755 index 00000000..480fb7e2 --- /dev/null +++ b/tests/plugins/service/test_files/test_binary |