SPECS: plptools.spec - use %service (weird upgrade procedure removed)
Przemek Iskra
sparky at pld-linux.org
Sun Mar 12 20:11:41 CET 2006
On Sun, Mar 12, 2006 at 07:20:17PM +0100, glen wrote:
> Author: glen Date: Sun Mar 12 18:20:17 2006 GMT
> Module: SPECS Tag: HEAD
> ---- Log message:
> - use %service (weird upgrade procedure removed)
now upgrade will fail if service is running:
file deamon mounts special nfs filesystem under /media/psion and changes
it's attributes
it must be stopped before upgrading files or rpm will fail on
/media/psion directory coldn't change it's attributes to in-rpm ones
> -%pre
> -if [ "$1" != "0" -a -f /var/lock/subsys/psion ]; then
> - /etc/rc.d/init.d/psion stop >&2
> - touch /var/lock/subsys/psion_was_started
> -fi
> -
> %post
> /sbin/ldconfig
> /sbin/chkconfig --add psion
> -if [ -f /var/lock/subsys/psion_was_started ]; then
> - /etc/rc.d/init.d/psion start >&2
> -fi
> -rm -f /var/lock/subsys/psion_was_started
> +%service psion restart
--
____ Sparky{PI] -- Przemyslaw _ ___ _ _ ........... LANG...Pl..Ca..Es..En
/____) ___ ___ _ _ || Iskra | | _ \| | | : WWW........ppcrcd.pld-linux.org
\____\| -_)'___| ||^'||//\\// < | _/| | | : JID......sparky<at>jabberes.org
(____/|| (_-_|_|| ||\\ || |_ |_| |_| _| : Mail....sparky<at>pld-linux.org
More information about the pld-devel-en
mailing list