Skip to content

Instantly share code, notes, and snippets.

@shahrilnet
Last active November 11, 2017 22:30
Show Gist options
  • Select an option

  • Save shahrilnet/060cb4d465c2f83bd45061769997daa2 to your computer and use it in GitHub Desktop.

Select an option

Save shahrilnet/060cb4d465c2f83bd45061769997daa2 to your computer and use it in GitHub Desktop.
Systemd unit service for DOMJudge's judgehost
$ sudo systemctl enable judgehost
$ sudo systemctl enable judgehost_cgroups
$ sudo systemctl start judgehost
$ sudo systemctl start judgehost_cgroups
$ reboot
[Unit]
Description=DOMJudge's judgehost service
After=mysql.service
[Service]
ExecStart=/home/shahril/domjudge/judgehost/bin/judgedaemon
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=forking
[Install]
WantedBy=default.target
[Unit]
Description=DOMJudge's judgehost cgroup creation service
After=mysql.service
[Service]
ExecStart=/home/shahril/domjudge/judgehost/bin/create_cgroups
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=forking
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment