Red Hat Bugzilla – Bug 810775
Bad %post scritlet
Last modified: 2012-08-09 19:31:25 EDT
Description of problem:
Installing tomcat results in the following error:
Installerar : tomcat-7.0.26-1.fc16.noarch 8/8
fel vid läsning av information om tjänsten tomcat: Filen eller katalogen finns inte
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. yum install tomcat
Error messaged about missing service information during installation
No errors during installation
Tomcat is handled using systemd. However the %post scriptlet still tries to configure the service using chkconfig in the %post scriptlet. This call is responsible for the error.
postinstall scriptlet (using /bin/sh):
# install but don't activate
/sbin/chkconfig --add tomcat
if [ $1 -eq 1 ]; then
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
Additionally: installing tomcat resulted in that redhat-lsb was installed as a dependency. Native Fedora packages are not supposed to depend on this. Do you really need it?
Still present on F17 with tomcat-7.0.27-2.fc17.noarch.
tomcat-7.0.28-1.fc17 has been submitted as an update for Fedora 17.
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing tomcat-7.0.28-1.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
tomcat-7.0.29-1.fc17 has been submitted as an update for Fedora 17.
tomcat-7.0.29-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report.