add slurm.sh
This commit is contained in:
parent
886661d5ba
commit
b6d5cb4df3
10
n2.slurm.sh
Executable file
10
n2.slurm.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 修改 /usr/lib/systemd/system/slurmd.service 文件
|
||||
sudo sed -i 's|ExecStart=/usr/sbin/slurmd --systemd $SLURMD_OPTIONS|ExecStart=/usr/sbin/slurmd --conf=/opt/slurm/slurm.conf --systemd $SLURMD_OPTIONS|' /usr/lib/systemd/system/slurmd.service
|
||||
|
||||
# 重新加载 systemd 配置
|
||||
sudo systemctl daemon-reload
|
||||
|
||||
# 重启 slurmd 服务
|
||||
sudo systemctl restart slurmd
|
Loading…
x
Reference in New Issue
Block a user