=== m1dnight1 is now known as m1dnight_ | ||
=== m1dnight1 is now known as m1dnight_ | ||
srenatus | hi there. question from ancient history -- how would you check if a service is enabled without `show-config`? (upstart 0.6.5) | 07:48 |
---|---|---|
srenatus | hmm a grep on `initctl list` might be way to go | 08:04 |
JanC | define "enabled" | 10:53 |
JanC | I guess anything that has a 'start on' stanza could be considered "enabled" | 10:55 |
srenatus | known to the system and "to be started on boot/should be running". yes, this is kind of what I settled with: https://github.com/chef/inspec/pull/419 (oops all my tests are red) | 10:55 |
JanC | but even that would be muddy, as some services might have an on/off switch in /etc/default/* | 10:56 |
JanC | etc. :) | 10:56 |
JanC | and some that have a 'start on' stanza could possibly only be triggered by a manually issued event | 10:57 |
srenatus | I'm not a huge fan of "enabled" | 10:57 |
JanC | :) | 10:57 |
srenatus | what does it tell you? the important question is if it's running. if you reboot the machine, your test run will tell you if it's running or not ;) | 10:58 |
JanC | well, depending on your configuration, services might run only on certain conditions | 10:59 |
JanC | hopefully those conditions are defined correctly :) | 10:59 |
JanC | init systems can be quite complicated, be it sysvinit, upstart or systemd | 11:01 |
JanC | or bsd init, really | 11:01 |
srenatus | mhm yup | 11:02 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!