Services and User Management

An administrator sets "dbsvc - nofile 65536" in /etc/security/limits.conf for the dbsvc account. The database service runs as dbsvc under systemd, but /proc/<PID>/limits still shows Max open files of 1024 and the service logs "too many open files". Which action BEST raises the limit for this service?

Show the answer

Correct answerD. Add LimitNOFILE=65536 to a systemd drop-in for the service, reload systemd, and restart the service

Services started by systemd do not go through PAM, so limits.conf is not applied to them. LimitNOFILE= in the unit or a drop-in sets the limit at start. fs.file-max is a system-wide ceiling, not the per-process limit, so raising it leaves the service at 1024.