interface triggers?

Pasted by karlp on Thu May 5 11:37:49 2022 UTC as Text only
root@eg-02ECD0:~# ubus call service list '{"name": "monit", "verbose": true}'
{
	"monit": {
		"instances": {
			"instance1": {
				"running": true,
				"pid": 1788,
				"command": [
					"/usr/bin/monit",
					"-I"
				],
				"term_timeout": 5
			}
		},
		"triggers": [
			[
				"interface.*",
				[
					"if",
					[
						"eq",
						"interface",
						"loopback"
					],
					[
						"run_script",
						"/etc/init.d/monit",
						"reload"
					]
				],
				1000
			]
		]
	}
}