FS#51619 - oidentd doesn't install systemd files

Attached to Project: Community Packages
Opened by Pekka Järvinen (raspi) - Monday, 31 October 2016, 19:56 GMT
Last edited by Dave Reisner (falconindy) - Monday, 31 October 2016, 21:18 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
There seems to be systemd information in PKGBUILD file but it is not installed.

Steps to reproduce:

# pacman -S oidentd
resolving dependencies...
looking for conflicting packages...

Packages (1) oidentd-2.0.8-9

Total Installed Size: 0.06 MiB

:: Proceed with installation? [Y/n] Y

...

# systemctl --all | grep -i ident
#
# lsof -nP -i tcp | grep ident
#
# oidentd
# lsof -nP -i tcp | grep ident
oidentd 13093 root 6u IPv4 63422 0t0 TCP *:113 (LISTEN)
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 31 October 2016, 21:18 GMT
Reason for closing:  Works for me
Additional comments about closing:  The unit files are installed.
Comment by Dave Reisner (falconindy) - Monday, 31 October 2016, 20:03 GMT
Looks installed to me...

$ pkgfile -l oidentd | grep systemd/system/o
community/oidentd /usr/lib/systemd/system/oidentd.socket
community/oidentd /usr/lib/systemd/system/oidentd@.service
Comment by Pekka Järvinen (raspi) - Monday, 31 October 2016, 20:15 GMT
# pkgfile -l oidentd
bash: pkgfile: command not found

Missing dependency?
Comment by Dave Reisner (falconindy) - Monday, 31 October 2016, 20:46 GMT
replace 'pkgfile -l' with 'pacman -Ql' if you don't have pkgfile installed. I don't have oidentd installed, so 'pacman -Ql' doesn't work for me (but pkgfile does).
Comment by Pekka Järvinen (raspi) - Monday, 31 October 2016, 20:55 GMT
I removed oidentd with pacman -Rns oidentd, installed pkgfile with pacman and ran pkgfile --update.

Now when installing oidentd systemd files are generated but systemd still doesn't "see" oidentd files with:
# systemctl --all | grep -i ident
# systemctl list-sockets --all | grep -i ident
# systemctl list-units --all | grep -i ident
# pwd
/usr/lib/systemd/system
# ls -la | grep -i ident
-rw-r--r-- 1 root root 196 Mar 20 2015 oidentd@.service
-rw-r--r-- 1 root root 116 Mar 20 2015 oidentd.socket
Comment by Dave Reisner (falconindy) - Monday, 31 October 2016, 21:05 GMT
Have you called 'systemctl daemon-reload' since installing the package?

Please understand that pkgfile isn't a dependency of oidentd, it's just a tool to explore the contents of pacman packages.
Comment by Pekka Järvinen (raspi) - Monday, 31 October 2016, 21:14 GMT
Yes. I ran systemctl daemon-reload'. No effect.
Only information what I could extract:
# systemctl status oidentd@.service
Failed to get properties: Unit name oidentd@.service is missing the instance name.

# cat oidentd@.service
[Unit]
Description=Ident (RFC 1413) per-connection server

[Service]
ExecStart=/usr/bin/oidentd -I -u nobody -g nobody
ExecReload=/bin/kill -HUP $MAINPID
StandardInput=socket
StandardError=syslog

--- snip --
# cat oidentd@.service
[Unit]
Description=Ident (RFC 1413) per-connection server

[Service]
ExecStart=/usr/bin/oidentd -I -u nobody -g nobody
ExecReload=/bin/kill -HUP $MAINPID
StandardInput=socket
StandardError=syslog
[root@miit system]# cat oidentd.socket
[Unit]
Description=Ident (RFC 1413) socket

[Socket]
ListenStream=113
Accept=yes

[Install]
WantedBy=sockets.target


Loading...