Would like to move to to https://github.com/rug-cit-hpc/pg-playbooks but has large files...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

18 lines
517 B

[Unit]
Description=Slurm database daemon
After=munge.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
# Run daemon in the forground. systemd and docker do the daemonizing,
ExecStart=/usr/bin/docker run --network host --rm --name %n \
--volume /srv/slurm/volumes/etc/slurm:/etc/slurm \
--volumes-from munge.service \
hpc/slurm /usr/sbin/slurmdbd -D
[Install]
WantedBy=multi-user.target