Re: S6 Queries

2021-08-11 Thread Laurent Bercot
Thanks Laurent for the detailed explanations. We did a bootup speed comparison between S6 and systemd. S6 is able to boot up slightly faster than systemd. Actual result is 4-4.5% faster but we were expecting something near to 20%. Ours is a bit complex setup with more than 140 services (include

Re: S6 Queries

2021-08-11 Thread Arjun D R
Thanks Laurent for the detailed explanations. We did a bootup speed comparison between S6 and systemd. S6 is able to boot up slightly faster than systemd. Actual result is 4-4.5% faster but we were expecting something near to 20%. Ours is a bit complex setup with more than 140 services (includes a

Re: S6 Queries

2021-08-02 Thread Laurent Bercot
Do you think this is any better? = #!/bin/sh test_for_myrequirement || exit 1 exec mydaemon -myarg1 -myarg2 = This does not accomplish the same thing at all: it does not ensure that myrequirement is at least attempted before mydaemon runs

Re: S6 Queries

2021-08-02 Thread Steve Litt
Laurent Bercot said on Mon, 02 Aug 2021 19:39:47 + >>I thought the way to do what the OP asked is: >> >>= >>#!/bin/sh >>s6-svc -u myrequirement || exit 1 >>exec mydaemon -myarg1 -myarg2 >>= > > This is not a good idea in a s6-rc instal

Re: S6 Queries

2021-08-02 Thread Laurent Bercot
I thought the way to do what the OP asked is: = #!/bin/sh s6-svc -u myrequirement || exit 1 exec mydaemon -myarg1 -myarg2 = This is not a good idea in a s6-rc installation, because it sends raw s6 commands, which may mess with the service

Re: S6 Queries

2021-08-02 Thread Steve Litt
Laurent Bercot said on Mon, 02 Aug 2021 08:27:30 + >>2. Are there any ways to have loosely coupling dependencies? In >>systemd, we have After=. After option will help the current service >>to start after the mentioned service (in after). And the current >>service will anyway start even if the

Re: S6 Queries

2021-08-02 Thread Laurent Bercot
1. In systemd, the services are grouped as targets and each target depends on another target as well. They start as targets. [ex: Reached local-fs.target, Reached network.target, Reached UI target,...]. Is there any way in S6 to start the init system based on bundles? Yes, that is what bundles

S6 Queries

2021-08-01 Thread Arjun D R
Hi Team, We are trying to migrate from systemd init system to S6. We have a few queries, please help us on the same. 1. In systemd, the services are grouped as targets and each target depends on another target as well. They start as targets. [ex: Reached local-fs.target, Reached network.target, R