-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.toml
More file actions
46 lines (44 loc) · 1.27 KB
/
example.toml
File metadata and controls
46 lines (44 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
port = 5400 # 6060
[[tasks]]
cmd = "/usr/bin/ls -l /home/tet"
name = "ls" # cmd[1]
# launch n time this process
numprocs = 1 # 1
# umask of the child (man 2 umask)
umask = 22 # None
# chdir before execve
workingdir = "/tmp" # None
# should start when taskmaster start
autostart = true # false
# behavior when the proc. die = "unexpected": relauch if exitcode isnt in exitcode conf, "false": never relaunch, "true": always relaunch
autorestart = "unexpected" # false
# Normal exitcode of the program, needed when autorestart = "unexpected"
exitcodes = [0, -2] # [0]
# with wich signal should we stop the task
stopsignal = "TERM" # "TERM"
# how much time before the kill -9
stoptime = 10 # 1
# stdout of the task
stdout = "/tmp/nginx.stdout" # /tmp/{name}.stdout
# stderr of the task
stderr = "/tmp/nginx.stderr" # /tmp/{name}.stderr
# env variable we should give to the task
env = [
{ key = "STARTED_BY", value = "taskmaster" },
{ key = "ANSWER", value = "42" }
] # None
#[[tasks]]
#name = "vogsphere"
#cmd = "/usr/local/bin/vogsphere-worker --no-prefork"
#numprocs = 8
#umask = 77
#workingdir = "/tmp"
#autostart = true
#autorestart = "unexpected"
#exitcodes = 0
#startretries = 3
#starttime = 5
#stopsignal = "USR1"
#stoptime = 10
#stdout = "/tmp/vgsworker.stdout"
#stderr = "/tmp/vgsworker.stderr"