Forum: CFEngine Help Subject: Re: Direct cf-execd to log under /var/log instead of /var/cfengine/outputs? Author: [email protected] Link to topic: https://cfengine.com/forum/read.php?3,24008,24010#msg-24010
So, even the symlink thing really wont work here.. $ ls -l /var/cfengine/outputs lrwxrwxrwx 1 root root 17 Nov 18 16:46 /var/cfengine/outputs -> /var/log/cfengine/ $ cd /var/log/cfengine/ $ ls -al total 6 drwxr-xr-x 2 root root 512 Nov 18 16:53 ./ drwxr-xr-x 8 root sys 512 Nov 18 16:44 ../ -rw------- 1 root root 61 Nov 18 16:53 cf_host1__1321635044_Fri_Nov_18_16_50_44_2011_2 The symlink does get the logs redirected under /var/log/cfengine, but, now I've got a permissions issue on the file itself. Again, I can have a promise which cleans up the permissions for the logs, but, that would only correct the logs from the previous run... Its not going to be real time... So, I guess we need 2 additional variables here.. 1. Log directory for cf-execd 2. User, group, mode of the files cf-execd writes.. I submitted this as a feature request. In the meantime, I suppose I'll just copy the files around and live with the output being stale from the last execution. https://cfengine.com/bugtracker/view.php?id=869 Thanks Mike _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
