da33defa41
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>
12 lines
235 B
SYSTEMD
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
|