summaryrefslogtreecommitdiff
path: root/tests/plugins/service/configs/.rr-service-init.yaml
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-18 17:31:52 +0300
committerValery Piashchynski <[email protected]>2021-04-18 17:31:52 +0300
commit4e6dfc00c5619c4e749602d345fd2829ab0a3f07 (patch)
tree12b4ce7644b02b6e76cfa46e8c80d54690d6e0dc /tests/plugins/service/configs/.rr-service-init.yaml
parent15b7a9a0fc074531f9b46bb87fb35819e248a58c (diff)
- Draft implementation of the service plugin
Diffstat (limited to 'tests/plugins/service/configs/.rr-service-init.yaml')
-rw-r--r--tests/plugins/service/configs/.rr-service-init.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/plugins/service/configs/.rr-service-init.yaml b/tests/plugins/service/configs/.rr-service-init.yaml
new file mode 100644
index 00000000..9ca0bde5
--- /dev/null
+++ b/tests/plugins/service/configs/.rr-service-init.yaml
@@ -0,0 +1,21 @@
+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
+
+logs:
+ level: debug
+ mode: raw
+
+endure:
+ grace_period: 120s
+ print_graph: false
+ log_level: debug