Add systemd service and timer to start this script every minute

This commit is contained in:
Michael Schwarz 2022-09-06 15:02:28 +02:00
parent 57593358a2
commit c9aa4095fe
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,11 @@
[Unit]
Description=Sync slurm with ClusterCockpit
[Service]
Type=oneshot
WorkingDirectory=/opt/software/slurm/cc-slurm-sync
ExecStart=/opt/software/slurm/cc-slurm-sync/slurm-clusercockpit-sync.py
User=root
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,9 @@
[Unit]
Description=Sync slurm with ClusterCockpit timer
[Timer]
OnCalendar=*-*-* *:*:00
Persistent=false
[Install]
WantedBy=timers.target