Forum: Cfengine Help
Subject: Cfengine blew away my init.d folder
Author: daveseff
Link to topic: https://cfengine.com/forum/read.php?3,17972,17972#msg-17972

I wanted to deploy a new init.d script on my servers. It was a simple copy from 
the master:


files:
    "/etc/init.d/zasg"                       
    perms => mog("755","root","root"), 
    copy_from => remote_cp("$(g.repo)/asg/zasg","$(g.phost)"), 
    action => if_elapsed("30");

However, once this ran I ended up with an empty /etc/init.d/ with only my new 
file in it. It went unnoticed until some servers went down for reboot and 
didn't come up again. Once the smoke cleared we noticed that cfengine had moved 
/etc/init.d (which is a symlink to /etc/rc.d/init.d/ in RHEL 5) to 
/etc/init.d.cfsaved and recreated the directory. 

So does cfengine not like to copy files into a directory that is a symlink? Is 
there a way to tell CFengine not to destroy symlinks so that I can avoid this 
in the future? 

Thanks. 
-Dave

_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to