I have an RPM which does
- File copy (say, 123.so )
- in %post, runs
/etc/init.d/VontuMonitor restart
If copy the same files manually (user is root) and launch the same command manually, then everything works. If I create an RPM which does exactly the same, then the script fails with "file not found" exception (though the specified file does exist).
What is the difference between RPM and copy&execute commands? I suppose that RPM does something, which prevents script from normal working, but what could that be? Is where any way to track things performed by RPM installator?
I have CentOS, /etc/init.d/VontuMonitor
is a 3rd-party script.
[UPD] This is my RPM and I'm sure that there is nothing but file copy and this command in spec-file.
rpm -q <rpm-name> --scripts
(without -p !) – Chris Maes Nov 07 '16 at 08:51rpm -bb
command report success for this rpm. During the installation, I see progress indication and finally 100% installed. But not with -p key, -p does not work for me. – Nadia Solovyeva Nov 09 '16 at 04:33