-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove installation of service files
For FHS install the chosen option is most likely incorrect and in case someone uses a prefix the files would most of the time still need to be installed outside of that prefix. The same method as for the webserver files will be used, so present the option to copy them yourself as sysadmin on the machine both in the Makefile and in the documentation. Co-authored-by: Jaap Eldering <[email protected]>
- Loading branch information
Showing
4 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,6 +151,17 @@ endif | |
# Fix permissions and ownership for password files: | ||
-$(INSTALL_USER) -m 0600 -t $(DESTDIR)$(judgehost_etcdir) \ | ||
etc/restapi.secret | ||
@echo "" | ||
@echo "========== Judgehost Install Completed ==========" | ||
@echo "" | ||
@echo "Optionally:" | ||
@echo " - Install the create-cgroup service to setup the secure judging restrictions:" | ||
@echo " cp judge/create-cgroups.service /etc/systemd/system/" | ||
@echo " - Install the judgehost service:" | ||
@echo " cp judge/[email protected] /etc/systemd/system/" | ||
@echo " - You can enable the judgehost on CPU core 1 with:" | ||
@echo " systemctl enable domjudge-judgedaemon@1" | ||
@echo "" | ||
|
||
check-root: | ||
@if [ `id -u` -ne 0 -a -z "$(QUIET)" ]; then \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,15 @@ example to install DOMjudge in the directory ``domjudge`` under `/opt`:: | |
make judgehost | ||
sudo make install-judgehost | ||
|
||
Example service files for the judgehost and the judgedaemon are provided in | ||
``judge/create-cgroups.service`` and ``judge/[email protected]``. The rest of the manual assumes you install those | ||
in a location which is picked up by ``systemd``, for example ``/etc/systemd/system``. | ||
|
||
.. parsed-literal:: | ||
cp judge/[email protected] /etc/systemd/system/ | ||
cp judge/create-cgroups.service /etc/systemd/system/ | ||
The judgedaemon can be run on various hardware configurations; | ||
|
||
- A virtual machine, typically these have 1 or 2 cores and no hyperthreading, because the kernel will schedule its own tasks on CPU 0, we advice CPU 1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,11 +30,6 @@ install-judgehost: | |
judgedaemon.main.php run-interactive.sh | ||
$(INSTALL_PROG) -t $(DESTDIR)$(judgehost_bindir) \ | ||
judgedaemon runguard runpipe create_cgroups | ||
ifneq ($(systemd_unitdir),) | ||
$(INSTALL_DIR) $(DESTDIR)$(systemd_unitdir) | ||
$(INSTALL_DATA) -t $(DESTDIR)$(systemd_unitdir) \ | ||
create-cgroups.service domjudge-judgehost.target [email protected] | ||
endif | ||
|
||
clean-l: | ||
-rm -f $(TARGETS) $(TARGETS:%=%$(OBJEXT)) | ||
|