Re: C API for service management

From: Jan Olszak <jan.olszak_at_vestiacom.com>
Date: Wed, 20 Jan 2016 09:18:27 +0100

Cool, thanks!

On Tue, Jan 19, 2016 at 8:34 PM, Laurent Bercot <ska-supervision_at_skarnet.org
> wrote:

> On 19/01/2016 18:44, Jan Olszak wrote:
>
>> Hi!
>> I'm developing a daemon that will:
>> - start/stop
>> - send signals
>> - check status
>> of some services.
>>
>> This can be done via s6-svc or s6-svstat but:
>> 1. Can I use the underlying calls from libs6?
>> 2. Is this interface likely to change?
>>
>
> If you mean send commands to s6-supervise via s6_svc_writectl(),
> and read the status file via s6_svstatus_read(), then yes, you can use
> those calls, and no, it's probably not going to change.
>
> The contents of a s6_svstatus_t structure, however, may be expanded in
> the future. I think you can rely on backwards compatibility, i.e. all
> the current fields will remain there with the same meaning; but do not
> assume that they are no other fields.
>
> --
> Laurent
>
>
Received on Wed Jan 20 2016 - 08:18:27 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC