This commit is contained in:
ppom
2023-07-12 17:45:16 +02:00
parent 98f7f15ae0
commit 075b9252b7
6 changed files with 25 additions and 13 deletions

View File

@ -17,3 +17,4 @@ streams:
sleepdamn:
cmd: [ "echo", "sleep", "<ip>" ]
after: 8m
onexit: true

View File

@ -1,5 +1,4 @@
---
# TODO heavily comment this file
# definitions are just a place to put chunks of conf you want to reuse in another place
# they're not readed by reaction
definitions:
@ -42,3 +41,8 @@ streams:
# if after is defined, the action will not take place immediately, but after a specified duration.
# same format as retry-period
after: 48h
# let's say reaction is quitting. does it run all those pending commands which had an `after` duration set?
# if you want reaction to run those pending commands before exiting, you can set this:
# onexit: true
# (defaults to false)
# here it is not useful because we will flush the chain containing the bans anyway (see ./reaction.service)