Skip to content

Commit 8fb8f9f

Browse files
committed
add example jobs for all cases
1 parent 00aca02 commit 8fb8f9f

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

examples/timestamps.d/timestamps.hcl

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
job "echoloop" {
1+
job "echoloop_test" {
22
command = "/bin/bash"
33
args = [
44
"-c",
@@ -9,4 +9,41 @@ job "echoloop" {
99
stderr = "test_error.log"
1010
enableTimestamps = true
1111
timestampFormat = "test"
12+
}
13+
14+
job "echoloop_custom" {
15+
command = "/bin/bash"
16+
args = [
17+
"-c",
18+
"while true ; do echo 'test'; sleep 10; done"
19+
]
20+
21+
stdout = "test_custom.log"
22+
stderr = "test_custom_error.log"
23+
enableTimestamps = true
24+
customTimestampFormat = "2006-01-02 15:04:05"
25+
}
26+
27+
job "echoloop_kitchentime" {
28+
command = "/bin/bash"
29+
args = [
30+
"-c",
31+
"while true ; do echo 'test'; sleep 10; done"
32+
]
33+
34+
stdout = "test_kitchentime.log"
35+
stderr = "test_kitchentime_error.log"
36+
enableTimestamps = true
37+
timestampFormat = "Kitchen"
38+
}
39+
40+
job "echoloop_notime" {
41+
command = "/bin/bash"
42+
args = [
43+
"-c",
44+
"while true ; do echo 'test'; sleep 10; done"
45+
]
46+
47+
stdout = "test_notime.log"
48+
stderr = "test_notime_error.log"
1249
}

0 commit comments

Comments
 (0)