Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#32190 - [glibc] typo in nscd systemd unit file

Attached to Project: Arch Linux
Opened by larchunix (larchunix) - Tuesday, 23 October 2012, 20:59 GMT
Last edited by Allan McRae (Allan) - Thursday, 25 October 2012, 00:04 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Reloading nscd daemon via systemctl is broken.

Indeed nscd.service file contain following command for reload :

ExecReload=/usr/sbin/nscd -i service

Final 's' is missing, it should be

ExecReload=/usr/sbin/nscd -i services

Steps to reproduce:

Start nscd daemon and reload it :

> sudo systemctl start nscd.service
> sudo systemctl reload nscd.service
Job for nscd.service failed. See 'systemctl status nscd.service' and 'journalctl' for details.

Additional info:

> sudo systemctl status nscd.service
nscd.service - Name Service Cache Daemon
Loaded: loaded (/usr/lib/systemd/system/nscd.service; enabled)
Active: active (running) (Result: exit-code) since Tue, 23 Oct 2012 20:00:17 +0200; 2h 26min ago
Process: 495 ExecStop=/usr/sbin/nscd --shutdown (code=exited, status=0/SUCCESS)
Process: 1898 ExecReload=/usr/sbin/nscd -i service (code=exited, status=64)
Process: 1896 ExecReload=/usr/sbin/nscd -i hosts (code=exited, status=0/SUCCESS)
Process: 1894 ExecReload=/usr/sbin/nscd -i group (code=exited, status=0/SUCCESS)
Process: 1892 ExecReload=/usr/sbin/nscd -i passwd (code=exited, status=0/SUCCESS)
Process: 498 ExecStart=/usr/sbin/nscd (code=exited, status=0/SUCCESS)
Main PID: 500 (nscd)
CGroup: name=systemd:/system/nscd.service
└ 500 /usr/sbin/nscd

Oct 23 20:00:17 xunilhcra systemd[1]: Started Name Service Cache Daemon.
Oct 23 22:26:33 xunilhcra systemd[1]: Reloading Name Service Cache Daemon.
Oct 23 22:26:33 xunilhcra nscd[1898]: nscd: 'service' is not a known database
Oct 23 22:26:33 xunilhcra nscd[1898]: Try `nscd --help' or `nscd --usage' for more information.
Oct 23 22:26:33 xunilhcra systemd[1]: Reload failed for Name Service Cache Daemon.

P.S: It would be convenient to ship the /var/db/nscd directory in the glibc package. This directory needs to exist to enable persistent caching with nscd :


> sudo systemctl status nscd.service
nscd.service - Name Service Cache Daemon

...

Oct 23 22:56:42 xunilhcra systemd[1]: Starting Name Service Cache Daemon...
Oct 23 22:56:42 xunilhcra systemd[1]: Started Name Service Cache Daemon.
Oct 23 22:56:42 xunilhcra nscd[2397]: 2397 cannot create /var/db/nscd/passwd; no persistent database used
Oct 23 22:56:42 xunilhcra nscd[2397]: 2397 cannot create /var/db/nscd/group; no persistent database used
Oct 23 22:56:42 xunilhcra nscd[2397]: 2397 cannot create /var/db/nscd/hosts; no persistent database used
Oct 23 22:56:42 xunilhcra nscd[2397]: 2397 cannot create /var/db/nscd/services; no persistent database used
Oct 23 22:56:42 xunilhcra nscd[2397]: 2397 cannot create /var/db/nscd/netgroup; no persistent database used
This task depends upon

Closed by  Allan McRae (Allan)
Thursday, 25 October 2012, 00:04 GMT
Reason for closing:  Fixed
Comment by Allan McRae (Allan) - Thursday, 25 October 2012, 00:04 GMT
glibc-2.16.0-5 will be pushed later today with the binutils toolchain rebuild fixing this issue.

Loading...