Comments (4)
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.
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.
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.
As discussed at 21st workshop, we have decided that we will not implement this.
from caf.
Related Issues (20)
- CAF::Reporter struct logging fails on el5 due to missing strict TT mode HOT 2
- CAF::Path documentation: methods should be in alphabetical order or grouped in sections
- CAF::FileWriter Can't call method "can" on unblessed reference at line 353
- filewriter_notmocked.t fails on SL6 HOT 1
- Unittests on el5 fail due to perl warnings HOT 1
- FileWriter: confusing same message with `cancel` and `close` with save=0
- CAF::FileEditor from source broken HOT 3
- CAF::FileWriter: reported diff does not end up in verbose logfile HOT 1
- CAF::FileWriter default permissions HOT 5
- CAF/LC default permissions HOT 1
- CAF::Process output that ends up on stdout is not part of logfile with verbose_logfile
- CAF::Service: Providing restart-if-running (conditional restart) functionality. HOT 4
- CAF::Process: Include an option to execute the command as an specific user HOT 1
- CAF::Process: Include sensitive option HOT 5
- CAF::Process supports shell option HOT 9
- Filewriter: modify permissions when content is unmodified HOT 3
- Problems with #258 HOT 2
- CAF::FileWriter TODO from pod - drop LC::*
- CAF::FileWriter should use external diff command for large files
- CAF::Process allow environment to be specified
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caf.