mirror of
https://gitlab.cs.uni-saarland.de/hpc/cc-condor-sync.git
synced 2024-12-25 13:09:06 +01:00
Add systemd service and timer to start this script every minute
This commit is contained in:
parent
57593358a2
commit
c9aa4095fe
11
contrib/cc-slurm-sync.service
Normal file
11
contrib/cc-slurm-sync.service
Normal 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
|
9
contrib/cc-slurm-sync.timer
Normal file
9
contrib/cc-slurm-sync.timer
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Sync slurm with ClusterCockpit timer
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* *:*:00
|
||||
Persistent=false
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user