- 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
Name: at
Version: 3.1.10
Release: 23%{?dist}
Release: 24%{?dist}
License: GPLv2+
Group: System Environment/Daemons
URL: http://ftp.debian.org/debian/pool/main/a/at
@ -159,13 +159,13 @@ chown daemon:daemon %{_localstatedir}/spool/at/.SEQ
%preun
if [ "$1" = 0 ] ; then
/sbin/service atd stop >/dev/null 2>&1
/sbin/service atd stop >/dev/null 2>&1 ||:
/sbin/chkconfig --del atd
fi
%postun
if [ "$1" -ge "1" ]; then
/sbin/service atd condrestart >/dev/null 2>&1
/sbin/service atd condrestart >/dev/null 2>&1 ||:
fi
%files
@ -187,6 +187,9 @@ fi
%attr(4755,root,root) %{_bindir}/at
%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
- 436952 use local instead of posix output date/time format.

View File

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