summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2015-10-05 13:06:28 +0200
committerJuergen Daubert <jue@jue.li>2015-10-05 13:06:28 +0200
commit8bf44114aecf5ecf29a7d17264a105ce16a6fb26 (patch)
tree328e22e3d28f29316e1bfc8630b401c2e7f80c15
parent9c28d84ea27974b62640370cdfc89965398a60b1 (diff)
downloadopt-8bf44114aecf5ecf29a7d17264a105ce16a6fb26.tar.gz
opt-8bf44114aecf5ecf29a7d17264a105ce16a6fb26.tar.xz
fcron: optimize start script a bit
-rw-r--r--fcron/.md5sum2
-rw-r--r--fcron/Pkgfile2
-rw-r--r--fcron/fcron9
3 files changed, 9 insertions, 4 deletions
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

Generated by cgit