blob: 9ca0bde5b31a8b57b3aede204cf4e7d7bed6d64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
|