Files
mgmt/examples/lang/cron4.mcl
James Shubin d0ed004b24 examples: lang: Test that each of the mcl examples compiles
We let these rot, so fixup the issues and test them!
2024-07-31 17:29:42 -04:00

21 lines
361 B
Plaintext

import "fmt"
import "sys"
$home = sys.getenv("HOME")
cron "purpleidea-oneshot" {
state => "absent",
session => true,
trigger => "OnCalendar",
time => "*:*:0",
}
svc "purpleidea-oneshot" {
state => "stopped",
session => true,
}
file [fmt.printf("%s/.config/systemd/user/purpleidea-oneshot.service", $home),] {
state => $const.res.file.state.absent,
}