+%post
+/sbin/ldconfig
+/sbin/chkconfig --add o2cb
+/sbin/chkconfig --add %{name}
+%service o2cb restart
+%service %{name} restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service -q %{name} stop
+ %service -q o2cb stop
+ /sbin/chkconfig --del %{name}
+ /sbin/chkconfig --del o2cb
+fi
+