KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a software package for which I created an RPM. I can't paste the entire RPM here for IP reasons, but here is the gist of the problem: %pre /sbin/pidof program if [ "$?" -eq "0" ] then /sbin/service program stop fi %post /sbin/chkconfig program on /sbin/service program start %preun /sbin/service program stop /sbin/chkconfig program off %postun rm -rf /program_folder Everytime I try to upgrade the package, it stops the program service, installs everything, starts the service, and then stops it again and deletes the folder...any ideas?
Tags (comma-separated)
Save Edits
Cancel