Mailing List CGatePro@mail.stalker.com Message #92429
From: Robinson Maureira Castillo <rmaureira@solint.cl>
Subject: Re: [CGP-Update] [*] CommuniGate Pro 5.1.12 is released
Date: Mon, 03 Sep 2007 20:40:05 -0400
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
X-Mailer: CommuniGate Pro WebUser v5.1.11
Hello Support,

To avoid those problems, simply do the following changes (diff -u format) in the spec file, first in the preinstall scriptlet:

-if ! [ -e /etc/rc.d/rc2.d/K10CommuniGate ]; then
-  echo "creating startup script links"
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc0.d/K10CommuniGate
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc1.d/K10CommuniGate
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc2.d/K10CommuniGate
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc3.d/S80CommuniGate
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc5.d/S80CommuniGate
-  ln -s ${INITDDIR}/CommuniGate /etc/rc.d/rc6.d/K10CommuniGate
-fi
+/sbin/chkconfig --add CommuniGate

And in the post-install scriptlet:

-if [ -e /etc/rc.d/rc2.d/K10CommuniGate ]; then
-  echo "removing startup links"
-  rm /etc/rc.d/rc6.d/K10CommuniGate
-  rm /etc/rc.d/rc5.d/S80CommuniGate
-  rm /etc/rc.d/rc3.d/S80CommuniGate
-  rm /etc/rc.d/rc2.d/K10CommuniGate
-  rm /etc/rc.d/rc1.d/K10CommuniGate
-  rm /etc/rc.d/rc0.d/K10CommuniGate
-fi
+
+/sbin/chkconfig --del CommuniGate
+

That way you don't have to deal with manual symlinking of files.

Hope it helps.


On Mon, 03 Sep 2007 22:07:39 +0400
 Technical Support <support@stalker.com> wrote:
Hello,

Derek Pitts wrote:
I get this error message when upgrading from 5.1.11 x86_64 to 5.1.12 x86_64 on RHEL 5.

# uname -a Linux server.example.com 2.6.18-8.1.8.el5 #1 SMP Mon Jun 25 17:06:07 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux

Shutting down the CommuniGate Pro Server
[root@server]# rpm -e CGatePro-Linux-5.1-11
restoring the old mail application
[root@server]# rpm -Uvh CGatePro-Linux-5.1-12.x86_64.rpm
Preparing...  ########################################### [100%]
    1:CGatePro-Linux ########################################### [100%]
installing Startup Script
Renaming the old mail application
creating a link for the new mail application
creating startup script links
ln: creating symbolic link `/etc/rc.d/rc0.d/K10CommuniGate' to `/etc/rc.d/init.d/CommuniGate': File exists
ln: creating symbolic link `/etc/rc.d/rc1.d/K10CommuniGate' to `/etc/rc.d/init.d/CommuniGate': File exists
ln: creating symbolic link `/etc/rc.d/rc3.d/S80CommuniGate' to `/etc/rc.d/init.d/CommuniGate': File exists
ln: creating symbolic link `/etc/rc.d/rc5.d/S80CommuniGate' to `/etc/rc.d/init.d/CommuniGate': File exists
ln: creating symbolic link `/etc/rc.d/rc6.d/K10CommuniGate' to `/etc/rc.d/init.d/CommuniGate': File exists
error: %post(CGatePro-Linux-5.1-12.x86_64) scriptlet failed, exit status 1

Did you re-install the CommuniGate startup script?
Try to rm /etc/rc.d/rc*.d/*CommuniGate and run the installer again.

[]
-- Best regards,
Dmitry Akindinov

=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your reply.

#############################################################
This message is sent to you because you are subscribed to
 the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to <CGatePro-request@mail.stalker.com>

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster