[07:48] <srenatus> hi there. question from ancient history -- how would you check if a service is enabled without `show-config`? (upstart 0.6.5)
[08:04] <srenatus> hmm a grep on `initctl list` might be way to go
[10:53] <JanC> define "enabled"
[10:55] <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:56] <JanC> but even that would be muddy, as some services might have an on/off switch in /etc/default/*
[10:56] <JanC> etc.  :)
[10:57] <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:58] <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:59] <JanC> well, depending on your configuration, services might run only on certain conditions
[10:59] <JanC> hopefully those conditions are defined correctly  :)
[11:01] <JanC> init systems can be quite complicated, be it sysvinit, upstart or systemd
[11:01] <JanC> or bsd init, really
[11:02] <srenatus> mhm yup