Bug 1027235 - warning: file /var/lib/rpcbind: remove failed: No such file or directory
Summary: warning: file /var/lib/rpcbind: remove failed: No such file or directory
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rpcbind
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Steve Dickson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 12:09 UTC by Marcos Mello
Modified: 2014-10-23 17:40 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-10-23 17:40:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.