engine: resources: cron: Add auto edges from SvcRes

This commit is contained in:
Jonathan Gold
2018-12-14 23:07:45 -05:00
parent 68ef312233
commit da0ffa5e56
3 changed files with 142 additions and 28 deletions

17
examples/lang/cron4.mcl Normal file
View File

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