Bug 1027235

Summary: warning: file /var/lib/rpcbind: remove failed: No such file or directory
Product: [Fedora] Fedora Reporter: Marcos Mello <marcosfrm>
Component: rpcbindAssignee: Steve Dickson <steved>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-23 17:40:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Marcos Mello 2013-11-06 12:09:46 UTC
rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain.

------

D: %preun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start
D: %preun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2974
+ '[' 0 -eq 0 ']'
+ /bin/systemctl --no-reload disable rpcbind.service
+ /bin/systemctl stop rpcbind.service
+ /usr/sbin/userdel rpc
+ /usr/sbin/groupdel rpc
+ :
+ rm -rf /var/lib/rpcbind
D: %preun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2974) rc 2974 status 0
  Erasing    : rpcbind-0.2.1-0.fc19.x86_64                                  1/2 
D: erase      000700  0 (   0,   0)     0 /var/lib/rpcbind
warning: file /var/lib/rpcbind: remove failed: No such file or directory
D: erase      100644  1 (   0,   0)  2388 /usr/share/man/man8/rpcinfo.8.gz
D: erase      100644  1 (   0,   0)  1581 /usr/share/man/man8/rpcbind.8.gz
D: erase      100644  1 (   0,   0)   112 /usr/share/doc/rpcbind-0.2.1/README
D: erase      100644  1 (   0,   0)  9045 /usr/share/doc/rpcbind-0.2.1/ChangeLog
D: erase      100644  1 (   0,   0)   106 /usr/share/doc/rpcbind-0.2.1/AUTHORS
D: erase      040755  2 (   0,   0)  4096 /usr/share/doc/rpcbind-0.2.1
D: erase      100755  1 (   0,   0) 28496 /usr/sbin/rpcinfo
D: erase      100644  1 (   0,   0)   132 /usr/lib/systemd/system/rpcbind.socket
D: erase      100644  1 (   0,   0)   259 /usr/lib/systemd/system/rpcbind.service
D: erase      100755  1 (   0,   0) 58112 /sbin/rpcbind
D: erase      100644  1 (   0,   0)    73 /etc/sysconfig/rpcbind
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): scriptlet start
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): execv(/bin/sh) pid 2984
+ /bin/systemctl daemon-reload
+ '[' 0 -ge 1 ']'
D: %postun(rpcbind-0.2.1-0.fc19.x86_64): waitpid(2984) rc 2984 status 0

Comment 1 Steve Dickson 2014-10-23 17:40:12 UTC
(In reply to Marcos Mello from comment #0)
> rm -rf /var/lib/rpcbind/* on %preun will let RPM do its job without complain.
There is one:

%preun
%systemd_preun rpcbind.service rpcbind.socket
if [ $1 -eq 0 ]; then
    /usr/sbin/userdel  rpc 2>/dev/null || :
    /usr/sbin/groupdel rpc 2>/dev/null || :
    /usr/bin/rm -f /var/lib/rpcbind/*
fi