core-extra/scripts/core-daemon.service.in
Gabriel Somlo da33defa41 systemd: remove limit on fork() branching factor
On distributions using systemd, a default limit on the number of
tasks allowed to be created from a given unit may be set by default
(e.g., on F24, "DefaultTasksAccounting=yes" and "DefaultTasksMax=512"
are set in /etc/systemd/system.conf. A large CORE simulation may well
exceed that limit, at least during startup when many (sub)shell
processes are generated using fork().

To avoid running into this limit, set "TasksMax=infinity" in the
core-daemon.service unit file template.

Signed-off-by: Gabriel Somlo <glsomlo@cert.org>
2017-01-12 14:14:41 -05:00

12 lines
235 B
SYSTEMD

[Unit]
Description=Common Open Research Emulator Service
After=network.target
[Service]
Type=forking
PIDFile=/var/run/core-daemon.pid
ExecStart=@PYTHON@ @SBINDIR@/core-daemon -d
TasksMax=infinity
[Install]
WantedBy=multi-user.target