Permalink
Browse files

do not sync with cron if daemon is not started

  • Loading branch information...
1 parent 3b181bb commit 51d9824363e180eac8f8faf0df5b425fb1b12fe9 @graysky2 committed Sep 17, 2012
Showing with 8 additions and 1 deletion.
  1. +4 −0 CHANGELOG
  2. +3 −0 anything-sync-daemon
  3. +1 −1 asd.cron.hourly
View
@@ -1,3 +1,7 @@
+v3.6
+17-Sep-2012
+Fixed cron starting if daemon is not running.
+
v3.5
15-Sep-2012
Added sync function to /etc/rc.d/asd.
@@ -107,6 +107,9 @@ case "$1" in
[[ ! -f $DAEMON_FILE ]] && check
sync
;;
+ resync)
+ [[ -f $DAEMON_FILE ]] && sync
+ ;;
unsync)
# make sure the daemon ran to setup the links
[[ -f $DAEMON_FILE ]] && sync && unsync
View
@@ -1,2 +1,2 @@
#!/bin/sh
-/usr/bin/anything-sync-daemon sync &> /dev/null
+/usr/bin/anything-sync-daemon resync &> /dev/null

0 comments on commit 51d9824

Please sign in to comment.