Added an example of a task that simply prints/sends a message to
stdout/the GUI.
Configuration example:
/etc/opensnitchd/tasks/tasks.json:
{
"tasks": [
{
"enabled": true,
"name": "looper",
"configfile": "/etc/opensnitchd/tasks/looper/looper.json"
}
]
}
/etc/opensnitchd/tasks/looper/looper.json:
{
"name": "looper",
"parent": "looper",
"data": {
"interval": "5s"
}
}
|
||
|---|---|---|
| .. | ||
| main.go | ||