|
From: External C. L. (CAMPUS) <ext...@ox...> - 2008-10-31 14:10:10
|
Sure you can do it in the spec file. You just need to be sure that it is what you want to do.
Something like:
%pre
test -f /etc/init.d/symbolic
if [ $? -eq 0 ];then
/etc/init.d/symbolic status | grep -q running
if [ $? -eq 0 ];then
/etc/init.d/symbolic stop
fi
fi
# (...)
%post
/sbin/chkconfig --add symbolic
RL=$(/sbin/runlevel | awk '{print $2}')
/sbin/chkconfig --list symbolic | grep -q "$RL:on"
if [ $? -eq 0 ];then
/etc/init.d/symbolic start
fi
-----Original Message-----
From: Marco Mornati [mailto:mmo...@by...]
Sent: Friday, October 31, 2008 2:36 PM
To: stephane.dobbelaere
Cc: sym...@li...
Subject: Re: [Symbolic-users] Installing Symbolic
On Fri, 2008-10-31 at 14:36 +0100, stephane.dobbelaere wrote:
> Hi Marco
> for the update rpm , yes I don't stop symbolic.
> But I think the rpm must be do that .
>
> Because if we update a machine
> with yum update . you don't stop all service before .
> so It will be good to implement the stop symbolic in the rpm .
Yep I think the same thing... I'm not sure we can stop the service
inside spec file... but maybe we can check if it's running and stop the
installation.
Anyway... you right... and thanks! :D
Bye
Marco
>
> Enjoy
>
> Le vendredi 31 octobre 2008 à 12:40 +0100, Marco Mornati a écrit :
> > Hi Stephane,
> >
> > it seems strange to me, but now Symbolic for me works with default
> > configuration.
> >
> > I commit just one file on git to change a little bit the tomcat
> > configuration... but I got that error until I correctly set my Func.
> > In fact, with first tests Symbolic can't talk with any minion and so
> > database was filled just with user and role parameters but no func
> > method and operation were added.
> > I don't know why, but at the end, this situation report the HSQLDB
> > problem that was the cause of tomcat startup.
> >
> > Anyway... try pulling from git and building a new rpm. To be sure delete
> > the folder /var/lib/symbolic before a new installation. (before any
> > update remember to stop the symbolic daemon, I see that you can make an
> > rpm -e or rpm -Uvh with symbolic started... but I think it's not so good
> > to make this kind of operation with the application running).
> >
> > Now I take a look to mysql configuration.
> > Let me know if you can use Symbolic now.
> >
> > Bye
> > Marco
--
Dott. Ing. Mornati Marco
Byte-Code s.r.l
via Antonio Cechov, 1
San Giuliano Milanese (MI)
E-Mail: mmo...@by...
|