-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Before this commit, it was not possible to lazily declare an fb_timers entry that utilized a node attribute inside the command. After this commit, specifying a Proc for `command` or entries in `commands` will cause fb_timers to evaluate the proc when rendering the service template.
- Loading branch information
1 parent
edea576
commit 3d6c7c5
Showing
5 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This file managed by chef. | ||
# Local changes to this file will be overwritten. | ||
|
||
[Unit] | ||
Description=Run scheduled task lazy | ||
After=network.target | ||
|
||
[Service] | ||
Type=oneshot | ||
Slice=system-timers-lazy.slice | ||
ExecStart=/usr/local/bin/foobar.sh | ||
TimeoutStopSec=90s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file managed by chef. | ||
# Local changes to this file will be overwritten. | ||
|
||
[Unit] | ||
Description=Run scheduled task lazy | ||
|
||
[Install] | ||
WantedBy=timers.target | ||
|
||
[Timer] | ||
OnCalendar=*:0/15:0 | ||
AccuracySec=1s | ||
Persistent=false | ||
RandomizedDelaySec=0s | ||
Unit=lazy.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters