Re: Run something on first start of a service

From: Jens Rehsack <>
Date: Mon, 1 Feb 2021 13:23:22 +0100

> Am 01.02.2021 um 13:20 schrieb Crest <>:
> On 01.02.21 12:59, Jens Rehsack wrote:
>> Hi,
>> I'm struggling to figure out how to start a particular initialization when a service first comes up (since service startup, system startup, or ever).
>> I'm pretty sure it's well documented, but if the question is phrased incorrectly, you can search for a long time.
>> What daemontools-encore does with ./start seems pretty ok - and would be near perfect if it were to wait for ./start to finish before running ./run.
>> s6 has a concept for ./finish - so I think a ./start concept is there as well and I just can't find it. Can someone please nudge me on this?

> What's wrong with running ./data/start in the foreground from ./run or just adding the code to beginning of ./run?

When there is a sane concept, then it's maybe possible to use notifications instead of running same code with conditionals every time.

Jens Rehsack -

Received on Mon Feb 01 2021 - 12:23:22 UTC

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