engine: resources: cron: Add lang examples

This commit is contained in:
Jonathan Gold
2018-12-14 23:15:59 -05:00
committed by James Shubin
parent dbf0c84f0b
commit 8282f3b59c
4 changed files with 33 additions and 0 deletions

13
examples/lang/cron3.mcl Normal file
View File

@@ -0,0 +1,13 @@
$home = getenv("HOME")
cron "purpleidea-oneshot" {
session => true,
trigger => "OnCalendar",
time => "*:*:0",
}
svc "purpleidea-oneshot" {
session => true,
}
file printf("%s/.config/systemd/user/purpleidea-oneshot.service", $home) {}