diff --git a/contrib/cc-slurm-sync.service b/contrib/cc-slurm-sync.service new file mode 100644 index 0000000..a65cc5e --- /dev/null +++ b/contrib/cc-slurm-sync.service @@ -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 diff --git a/contrib/cc-slurm-sync.timer b/contrib/cc-slurm-sync.timer new file mode 100644 index 0000000..19f32ff --- /dev/null +++ b/contrib/cc-slurm-sync.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Sync slurm with ClusterCockpit timer + +[Timer] +OnCalendar=*-*-* *:*:00 +Persistent=false + +[Install] +WantedBy=timers.target