service: add service.signal ubus call
authorJo-Philipp Wich <jo@mein.io>
Tue, 13 Dec 2016 15:21:29 +0000 (16:21 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 13 Dec 2016 15:32:01 +0000 (16:32 +0100)
commit28f584ff290d0ee43a1c3604efd2e99931fe4d04
treeb9c38cf45726cac53929be61026cdf4774375150
parent794669c9ea00f4fc14a14899bcd2c9ea518c1a69
service: add service.signal ubus call

Add a service.signal call to allow sending kill() signals to a service.

The default signal sent to services is SIGHUP and may be overridden by a
numerical signal value using the signal parameter.

The optional instance argument allows restricting the signal delivery to one
specific instance. If omitted, the signal is sent to all instances.

Acked-by: John Crispin <john@phrozen.org>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
service/service.c