- 446004 hope adding || into scriptlets fix removing old package after

upgrade
This commit is contained in:
Marcela Mašláňová 2008-07-18 12:55:00 +00:00
parent 82024fce9a
commit 2a31c011e3
2 changed files with 9 additions and 5 deletions

View File

@ -6,7 +6,7 @@
Summary: Job spooling tools Summary: Job spooling tools
Name: at Name: at
Version: 3.1.10 Version: 3.1.10
Release: 23%{?dist} Release: 24%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://ftp.debian.org/debian/pool/main/a/at URL: http://ftp.debian.org/debian/pool/main/a/at
@ -159,13 +159,13 @@ chown daemon:daemon %{_localstatedir}/spool/at/.SEQ
%preun %preun
if [ "$1" = 0 ] ; then if [ "$1" = 0 ] ; then
/sbin/service atd stop >/dev/null 2>&1 /sbin/service atd stop >/dev/null 2>&1 ||:
/sbin/chkconfig --del atd /sbin/chkconfig --del atd
fi fi
%postun %postun
if [ "$1" -ge "1" ]; then if [ "$1" -ge "1" ]; then
/sbin/service atd condrestart >/dev/null 2>&1 /sbin/service atd condrestart >/dev/null 2>&1 ||:
fi fi
%files %files
@ -187,6 +187,9 @@ fi
%attr(4755,root,root) %{_bindir}/at %attr(4755,root,root) %{_bindir}/at
%changelog %changelog
* Fri Jul 18 2008 Marcela Maslanova <mmaslano@redhat.com> - 3.1.10-24
- 446004 hope adding || into scriptlets fix removing old package after upgrade
* Tue Mar 25 2008 Marcela Maslanova <mmaslano@redhat.com> - 3.1.10-23 * Tue Mar 25 2008 Marcela Maslanova <mmaslano@redhat.com> - 3.1.10-23
- 436952 use local instead of posix output date/time format. - 436952 use local instead of posix output date/time format.

View File

@ -26,7 +26,7 @@ LOCK_FILE=/var/lock/subsys/atd
start() { start() {
# Check if atd is already running # Check if atd is already running
echo -n $"Starting $prog: " echo -n $"Starting $prog: "
$ATD $OPTS && success || failure daemon $ATD $OPTS && success || failure
RETVAL=$? RETVAL=$?
[ "$RETVAL" = 0 ] && touch $LOCK_FILE [ "$RETVAL" = 0 ] && touch $LOCK_FILE
echo echo
@ -36,11 +36,12 @@ stop() {
echo -n $"Stopping $prog: " echo -n $"Stopping $prog: "
if [ -n "`pidfileofproc $ATD`" ] ; then if [ -n "`pidfileofproc $ATD`" ] ; then
killproc $ATD killproc $ATD
RETVAL=3
else else
failure $"Stopping $prog" failure $"Stopping $prog"
fi fi
RETVAL=$? RETVAL=$?
[ "$RETVAL" = 0 ] && rm -f $LOCK_FILE [ "$RETVAL" = 0 ] && rm -f $LOCK_FILE
echo echo
} }