:: Re: [DNG] Init compatibility
Startseite
Nachricht löschen
Nachricht beantworten
Autor: Steve Litt
Datum:  
To: dng
Betreff: Re: [DNG] Init compatibility
Ahh, but you're forgetting that sysvinit thang I wish never happened:
runlevels. And of course that 5 function thing with start, stop,
restart, and the other two, whatever they are.

But yeah, Edward, your requires, requires_running, start_parameters and
stop_parameters are a good start. And you also need provides so that
the process is given a name which others can be dependent upon.

SteveT

On Sun, 5 Jun 2016 21:31:26 +0200
Edward Bartolo <edbarx@???> wrote:

> Hi,
>
> I would like to suggest as a text template format for the automatic
> generation of init scripts to use a format similar to the one used in
> package control files. This uses sections that can easily be parsed
> without using complex parsers.
>
> I would go like this:
>
> Requires:
> Requires_Running:
> Start_Parameters:
> Stop_Parameters:
>
> Edward
>
> On 05/06/2016, Steve Litt <slitt@???> wrote:
> > On Sun, 5 Jun 2016 16:41:22 +0200
> > Jaromil <jaromil@???> wrote:
> >
> >
> >> OK but can we avoid polarization and use "markup (language
> >> definition)" instead of XML here? I share and understand well
> >> everyone's concerns about XML here and think it won't help mutual
> >> understanding of what you point out if we keep the unfortunate
> >> example Florian did. True that his suggestion is interesting.
> >>
> >> FTR I think YAML is a very interesting tree structured markup
> >> language very easy to read for humans and parse for machines.
> >
> > YAML is good. Python has an excellent YAML parser. YAML would be an
> > excellent choice for Florian's idea.
> >
> > YAML has no end tags, which means it gets cumbersome when data
> > becomes longer than an easily viewed line. So it's possible that
> > instead of *containing* scripts, the YAML would *point to* scripts.
> >
> >
> > SteveT
> >
> > Steve Litt
> > June 2016 featured book: Troubleshooting: Why Bother?
> > http://www.troubleshooters.com/twb
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> >