cas.spec | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
New commits:
commit fdf3b9e4ad32ba0ade2cc7b21841c4f4148cca3f
Author: adam stokes <astokes(a)fedoraproject.org>
Date: Mon May 24 11:20:12 2010 -0400
spec changes for init.d
diff --git a/cas.spec b/cas.spec
index de99c42..6660ecd 100644
--- a/cas.spec
+++ b/cas.spec
@@ -42,9 +42,7 @@ Requires: cas-admin = %{version}-%{release}
Requires: python-cherrypy
Requires: python-simplejson
Requires: python-mako
-Requires(post): /sbin/chkconfig
-Requires(preun): /sbin/chkconfig
-Requires(preun): /sbin/service
+Requires(post): chkconfig
%description server
Provides web frontend to CAS to allow for a much simpler user experience when
@@ -65,12 +63,11 @@ for i in `find ${RPM_BUILD_ROOT} -iname Makefile`; do rm $i; done
rm -rf ${RPM_BUILD_ROOT}
%post
-/sbin/chkconfig --add %{name}
+/sbin/chkconfig --add %{name}-server
%preun
if [ $1 = 0 ]; then
- /sbin/service %{name} stop > /dev/null 2>&1
- /sbin/chkconfig --del %{name}
+ /sbin/chkconfig --del %{name}-server
fi
%files
Show replies by date