:: Re: [DNG] startup scripts (was dng@…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: James Powell
日付:  
To: Didier Kryn, dng
題目: Re: [DNG] startup scripts (was dng@lists.dyne.org)
The boot scripts can be somewhat universal, but not always. Runit and s6 require some very special and specific service and boot scripts for init, plus a lot of custom service scripts. These are what need the most attention. The init stage scripts are going to be unique to each init system as well.

Stage 1 in Runit is the one shot primary system startup sequences, while in s6, stage 1 is the init system script itself.

These can be translated between each as needed, but each init should be made to have it's own stuff. In the long term, the scripts will not need much maintenance if they are done correctly.

Sent from my Windows Phone
________________________________
From: Didier Kryn<mailto:kryn@in2p3.fr>
Sent: ‎7/‎18/‎2015 6:44 AM
To: dng@???<mailto:dng@lists.dyne.org>
Subject: Re: [DNG] startup scripts (was dng@???)

Le 18/07/2015 12:43, KatolaZ a écrit :
> On Sat, Jul 18, 2015 at 09:52:18AM +0200, Didier Kryn wrote:
>
> [cut]
>
>>       Further more, a method could be agreed on to tell the script if
>> the daemon is going to be supervised or not, and we would then need
>> only one script for all cases.

>>
>>      For example, providing "supervised-start" and
>> "supervised-reload" in addition to the other cases could do the job.
>> For safety, the scripts could check a file which tells them which
>> supervisor is calling them.

>>
>>      What do you think?
>>                                          Didier

>
> How do you support init scripts for several init systems for all the
> daemons that could be installed in a distro like Devuan? Who should do
> this work? Who should keep things updated and synchronised to allow
> the whole process to be neat and clean? Guys, if one apt-get installs
> --force-yes the default editor, and things go wrong, it's not a big
> issue. If we do the same on init, it's back to dice
> rolling... (cit. moria).
>
> My2Cents
>
> KatolaZ
>


     Dear KatolaZ,


     I probably didn't express things properly. My idea was precisely a
way to workaround the issue you say. The idea was to modify the existing
sysv-init scripts so that, while remaining 100% compatible with
sysv-init, they become also usable by supervisors. If it proved possible
and a standard method was agreed on, then I am convinced the authors of
these daemons would do it upstream.


     Alas, supervision experts don't think it is possible :-(


     Didier



_______________________________________________
Dng mailing list
Dng@???
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng