Forum: CFEngine Help
Subject: Order/dependency problem
Author: loopx
Link to topic: https://cfengine.com/forum/read.php?3,26797,26797#msg-26797

Hi, 


In my "update.cf" file (used by "failsafe.cf"), I'm trying to make promise in 
the good order to avoid double run requirement. Here is what I'm trying to do 
without success :

1) create all symlinks from /var/cfengine/bin/cf-* to /usr/sbin/cf-*
2) copy /var/cfengine/bin/cf-* to /usr/local/sbin/
3) check permission ...


I'm not writting in the correct order : I use "handle" and "depends_on" ... and 
this doesn't seem to work. Should I take care to the order of promise within 
the configuration file ??????


Example from the "update.cf" :

                                depends_on      => { 
"update_files_usr_local_sbin" },
                                handle          => 
"update_files_sys_workdir_bin",


In log file, after updating all configuration files, the first thing it does is 
the handle "update_files_sys_workdir_bin" ... and not 
"update_files_usr_local_sbin" as expected with "depends_on" ... Is that normal ?

Looking the order of file, it seems to just look that order and don't care of 
depends_on/handle ... Is that the normal behaviour ?


Thanks

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to