Giter Club home page Giter Club logo

Comments (4)

stdweird avatar stdweird commented on August 15, 2024

we can rediscuss this during the workshop, but i still do not see why ncm-chkconfig can't be used.
the components should configure the service they are meant to configure (this could mean briefly starting a service, but should also restore the service to its original state, i.e. stopping it in the end if it wasn't running before). the only component needed to actually enable services is ncm-chkconfig.
implementing the logic in pan is the preferred option imho, also because it is a lot easier typically (and less perl code 😄 )

what we do need however, is a CAF::Service->status() (and a condrestart), most of which can be found https://github.com/quattor/configuration-modules-core/blob/master/ncm-postgresql/src/main/perl/Postgresql/Service.pm

if we would decide however that this is feature that components can handle, i think we should make this part of CAF::Service->start (or restart). i.e. any service started should be enabled automatically (or by default). (but removing the component should also imply disabling it, so some trivial unconfigure might required for each such component.

from caf.

jouvin avatar jouvin commented on August 15, 2024

I agree with you last paragraph: it should not be a distinct method but really an option of methods affecting the service state do do it permanently. I thought we already had the status and condrestart methods, they are clearly needed.
I will try to have a look to see if I can offload the chkconfig part in ncm-dpmlfc to the template site without adding too much complexity to the templates (that are already quite large).

from caf.

stdweird avatar stdweird commented on August 15, 2024

status and espcially condrestart are not provided by all sysvinit services, so having it in CAF might imply that it doesn't work (and there's no easy way to query the init script to see if it is supported or not). also , i have no clue what the situation is in solaris.

from caf.

jrha avatar jrha commented on August 15, 2024

As discussed at 21st workshop, we have decided that we will not implement this.

from caf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.