[root@detritus ~]# mkdir /var/run/httpd [root@detritus ~]# chown apache.apache /var/run/httpd [root@detritus ~]# systemctl restart httpd
[root@detritus ~]# mkdir /var/run/munge [root@detritus ~]# chown munge.munge /var/run/munge [root@detritus ~]# systemctl start munge
[root@detritus ~]# cat /opt/maintenance/fix_http.sh #!/bin/bash mkdir /var/run/httpd chown apache.apache /var/run/httpd systemctl restart httpd [root@detritus ~]# chmod u+x /opt/maintenance/fix_http.sh [root@detritus ~]# cat /etc/systemd/system/fix_http_atboot.service [Unit] Description=Fix httpd permissions and directories After=httpd.service [Service] Type=simple ExecStart=/opt/maintenance/fix_http.sh [Install] WantedBy=default.target [root@detritus ~]# systemctl daemon-reload [root@detritus ~]# systemctl enable fix_http_atboot.service Created symlink /etc/systemd/system/default.target.wants/fix_http_atboot.service → /etc/systemd/system/fix_http_atboot.service.