Skip to content

Commit

Permalink
clean up example
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Tappe committed Feb 13, 2025
1 parent c021b13 commit 598385b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/dist
examples/mittnite.d/local.hcl
cmd/mittnitectl/mittnitectl
*.log
25 changes: 0 additions & 25 deletions examples/bootjob.d/one_shot.hcl

This file was deleted.

File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions examples/oneshots.d/one_shot.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
boot "oneshot" {
command = "/bin/bash"
args = [
"examples/bootjob.d/job.sh"
]
}

boot "oneshot_two" {
command = "/bin/bash"
args = [
"examples/bootjob.d/job2.sh"
]
}
11 changes: 11 additions & 0 deletions examples/timestamps.d/timestamps.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
job "echoloop" {
command = "/bin/bash"
args = [
"-c",
"while true ; do echo 'test'; sleep 10; done"
]

stdout = "test.log"
stdout = "test_error.log"
enableTimestamps = true
}

0 comments on commit 598385b

Please sign in to comment.