User Tools

Site Tools


cluster:detritus_ko

A tener en cuenta al reiniciar detritus

Problemas

  • Apache no reinicia bien
[root@detritus ~]# mkdir /var/run/httpd
[root@detritus ~]# chown apache.apache /var/run/httpd
[root@detritus ~]# systemctl restart httpd
  • slurm no funciona → es un problema de munge
[root@detritus ~]# mkdir /var/run/munge
[root@detritus ~]# chown munge.munge /var/run/munge
[root@detritus ~]# systemctl start munge

systemd status

:SOMEDAY:

Fixes

  • Apache
[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.
cluster/detritus_ko.txt · Last modified: 2020/08/25 13:27 by osotolongo