diff --git a/fcron/.md5sum b/fcron/.md5sum index 1d7aebc02..9b14c1383 100644 --- a/fcron/.md5sum +++ b/fcron/.md5sum @@ -1,3 +1,3 @@ -50b4de0f8bbbaccb87de9157e391a8e6 fcron +7b83466279d19654fc7f6d259439cd33 fcron 4b031c2fba32a98fa814d1557158b0e9 fcron-3.2.0.src.tar.gz 0153ce1b5ac57ab970abafbde26a9b62 systab.orig diff --git a/fcron/Pkgfile b/fcron/Pkgfile index 269c661c6..0e2cfac3e 100644 --- a/fcron/Pkgfile +++ b/fcron/Pkgfile @@ -5,7 +5,7 @@ name=fcron version=3.2.0 -release=3 +release=4 source=(http://fcron.free.fr/archives/$name-$version.src.tar.gz fcron systab.orig) diff --git a/fcron/fcron b/fcron/fcron index ce6fccd3a..868302161 100644 --- a/fcron/fcron +++ b/fcron/fcron @@ -11,12 +11,14 @@ OPTS="--background" case $1 in start) $SSD --start --pidfile $PID --exec $PROG -- $OPTS - if [ ! -f /var/spool/fcron/systab ]; then - /usr/bin/fcrontab -u systab -z + RETVAL=$? + if [ $RETVAL -eq 0 && ! -f /var/spool/fcron/systab ]; then + /usr/bin/fcrontab -u systab -z fi ;; stop) $SSD --stop --retry 10 --pidfile $PID + RETVAL=$? ;; restart) $0 stop @@ -24,6 +26,7 @@ restart) ;; reload) $SSD --stop --signal USR1 --pidfile $PID + RETVAL=$? ;; status) $SSD --status --pidfile $PID @@ -39,4 +42,6 @@ status) ;; esac +exit $RETVAL + # End of file