Hi guys,
while experimenting with turning services on and off, I have run into an interesting situation
According to the docs and the Learning CFEngine 3 book, I should just be able to do something simple like:
bundle agent test
{
services:
"ssh"
service_policy => "stop";
}
This works, however when I try to disable avahi I get a stream of
Regular expression error "range out of order in character class" in expression "$(pattern[avahi-daemon])" at 16
Like so:
body common control
{
bundlesequence => { "test" };
inputs => { "/var/cfengine/inputs/libraries/cfengine_stdlib.cf" };
}
bundle agent test
{
services:
"avahi-daemon"
service_policy => "stop";
}
If I change "avahi-daemon" to avahi, I get no output but the service does not shut down. I know that I could always issue the commands to the box but as I understand this is not considered best practice. What am I missing? I have tried several "non-standard" services with the same result as avahi, either no output or a torrent of errors.
I appreciate any pointers that could be offered