cfengine: Received signal 2 (SIGKILL) while doing pre-lock-state
30 Jul 2008Ran into a problem today when adding this stanza to cfengine on a Debian Etch machine:
editfiles: ``` { /etc/aliases AppendIfNoSuchLine "root: sysadmin@pims.math.ca" DefineClasses "rebuild_aliases:restart_postfix" }
The cfengine reference file I've got, which sez it's for version 2.2.1, says you can define multiple classes in DefineClasses (or DefineInGroup), as long as they're separated by commas, spaces or dots. (The version in Etch is 2.2.20.)
However, when I ran cfagent, it just hung immediately after performing the edit, and gave this error when I ctrl-c'd it:
cfengine: Received signal 2 (SIGKILL) while doing [pre-lock-state]
Running cfengine with -d2
showed endless repetitions of AddClassToHeap()
at this point, so either there's something wrong with my syntax or there's a bug in cfengine. (I'm guessing the former.) Searching for pre-lock-state
and cfengine only turned up cases where the clients were syncing with the master; thus this note.
The fix was to just make it one class:
DefineClasses "rebuild_aliases"
Asking to restart Postfix was probably a bit of overkill anyhow...
Add a comment:
Name and email required; email is not displayed.
Related Posts
QRP weekend 08 Oct 2018
Open Source Cubesat Workshop 2018 03 Oct 2018
mpd crash? try removing files in /var/lib/mpd/ 11 Aug 2018