[ClusterLabs] pacemaker apache and umask on CentOS 7

Klaus Wenninger kwenning at redhat.com
Wed Apr 20 14:31:51 UTC 2016


On 04/20/2016 04:11 PM, fatcharly at gmx.de wrote:
> Hi,
>
> I´m running a 2-node apache webcluster on a fully patched CentOS 7 (pacemaker-1.1.13-10.el7_2.2.x86_64 pcs-0.9.143-15.el7.x86_64).
> Some files which are generated by the apache are created with a umask 137 but I need this files created with a umask of 117.
> To change this I first tried to add a umask 117 to /etc/sysconfig/httpd & rebooted the system. This had no effekt.
> So I found out (after some research) that this is not working under CentOS 7 and that this had to be changed via systemd.
> So I created a directory "/etc/systemd/system/httpd.service.d" and put there a "umask.conf"-File with this content: 
> [Service]
> UMask=0117
>
> Again I rebooted the system but no effekt.
> Is the pacemaker really starting the apache over the systemd ? And how can I solve the problem ?
Didn't check with CentOS7 but on RHEL7 there is a
/usr/lib/ocf/resource.d/heartbeat/apache.
So it depends on how you defined the resource starting apache if systemd
is used or if it being done by the ocf-ra.
>
> Any suggestions are welcome
>
> Kind regards
>
> fatcharly
>  
>    
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Users mailing list