coredump.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. To enable coredumps:
  2. * coredump_enabled=yes needs to be set in the configuration file
  3. of the particular kopano daemon.
  4. * If the daemon in question is configured to switch to another user
  5. user (cf. "run_as_user" and "run_as_group" configuration file
  6. directives), the fs.suid_dumpable sysctl needs to be changed. See
  7. the procfs(5) manual page for more information.
  8. When setting fs.suid_dumpable=2, kernel.core_pattern *must not*
  9. be a relative path.
  10. * Ensure that the kernel.core_pattern sysctl specifies a template which is
  11. writable for the (unprivileged) daemon process. If the template is
  12. left at the default value ("core") and the working directory of the
  13. daemon (cf. /proc/N/cwd) happens to be an unwritable directory such
  14. as the root directory (cf. "running_path" directive in
  15. configuration file), a dump cannot be generated.
  16. * sysctls may not necessarily be settable from within a Linux
  17. container, in which case this has to be done in the top namespace.
  18. * When starting the service via systemd/systemctl: The coredump size
  19. limit is by default infinite. It is possible to define a global
  20. coredump limit in /etc/systemd/system.conf, so ensure that no
  21. custom value (cf. "DefaultLimitCORE" directive) has been set.
  22. To check for a particular service's current applied policy, you can
  23. also use: `systemctl show kopano-server` and look at the LimitCORE=
  24. directive.
  25. * When starting the program directly from a shell prompt
  26. without the use of a service manager: The user shell limits are
  27. defined in /etc/security/limits.conf and often need to be adjusted,
  28. such as by adding a "* hard core unlimted" (no quotes) line.
  29. * When starting the service in a sysvinit environment:
  30. (it's a mess).
  31. Executing /etc/init.d/kopano-server from a shell follows the
  32. "Shell prompt" limitation above.
  33. When letting the service be started by the runlevel scripts:
  34. Possibly no limits apply.