Re: dependent services status

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ted,

On Thu, Nov 17, 2022 at 08:52:00AM -0600, Ted Toth wrote:
> I have a set of services that depend on each other however when
> services are started and considered 'active' that does not necessarily
> mean they are in a state that a dependent service requires them to be
> in to operate properly (for example an inotify watch has been
> established). systemd services, I think,  have a substate, is there a
> way I can set that to a custom value to indicate the services idea of
> its own state?

If you set Type=notify in the [Service] block of the service definition
file, you can use the sd_notify(3) API:

https://www.freedesktop.org/software/systemd/man/sd_notify.html

Is that what you are looking for?

Kind regards,
Alvin




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux