File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
icpc-wf/ansible/roles/judgedaemon Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1212
1313- name : enable and restart judgedaemon
1414 service :
15- name="domjudge-judgedaemon@{{item}} "
15+ name="domjudge-judgehost.target "
1616 enabled=yes
1717 state=restarted
18- loop : " {{CPUCORE}}"
1918
2019- name : update grub
2120 shell : update-grub
Original file line number Diff line number Diff line change 7474 notify :
7575 - restart systemctl
7676 - enable and restart create-cgroups
77+
78+ - name : template judgedaemon template systemd unit file
79+ template :
80+ src : domjudge-judgehost.target.j2
81+ dest : /etc/systemd/system/
82+ notify :
83+ - restart systemctl
7784 - enable and restart judgedaemon
7885
7986- name : disable systemd timers
Original file line number Diff line number Diff line change 1+ [Unit]
2+ Description=DOMjudge judgehost running one or more judgedaemons
3+ Requires={% for core in CPUCORE %} domjudge-judgedaemon@{{ core }}.service {% endfor %}
4+
5+ [Install]
6+ WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments