Page MenuHomec4science

Makefile
No OneTemporary

File Metadata

Created
Thu, Dec 26, 12:10

Makefile

FILES = /etc/systemd/system/elk_slurm_jobacct_async_pyslurm@.service /etc/systemd/system/elk_slurm_jobacct_async_pyslurm@.timer /usr/local/bin/elk_slurm_jobacct_async_pyslurm.py /etc/sysconfig/elk_slurm_jobacct_async_pyslurm.env
CLUSTER := $(shell awk -F'=' '/^ClusterName/{print $$2}' /etc/slurm/slurm.conf)
all: $(FILES) systemd required
clean:
systemctl disable elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer
rm -f $(FILES)
$(FILES):
cp -f $(notdir $@) $@
systemd:
systemctl enable elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer
systemctl start elk_slurm_jobacct_async_pyslurm@${CLUSTER}.timer
required:
dnf install -y pyslurm python3-aiohttp python3-pytz.noarch python3-chardet.noarch python3-urllib3.noarch
pip3 uninstall -y attr
pip3 install elasticsearch
#pip3 install --upgrade requests

Event Timeline