Permalink
Browse files

removed initscript support; minor cosmetic fixes

  • Loading branch information...
1 parent 26f3339 commit ffb76e4ef652a50d4382dfd72337e9569035c8f8 @graysky2 committed Dec 1, 2012
Showing with 14 additions and 41 deletions.
  1. +4 −0 CHANGELOG
  2. +10 −7 anything-sync-daemon
  3. +0 −34 rc.asd
View
@@ -1,3 +1,7 @@
+v3.11
+01-Dec-2012
+Dropped initscripts support. Systemd is no longer the future, it is the present.
+
v3.10
10-Nov-2012
Minor tweak to manpage.
View
17 anything-sync-daemon 100644 → 100755
@@ -2,11 +2,11 @@
# By graysky <graysky AT archlinux DOT us>
# Inspired by some code originally written by Colin Verot
-ASD_VERS="3.09"
+ASD_VERS="3.11"
# nothing to do if there is no conf file
if [[ ! -f /etc/asd.conf ]]; then
- echo "Cannnot find /etc/asd.conf so bailing. Reinstall package to use profile-sync-daemon."
+ echo "Cannnot find /etc/asd.conf so bailing. Reinstall package to use anything-sync-daemon."
exit 1
else
. /etc/asd.conf
@@ -124,10 +124,10 @@ unsync() {
}
debug() {
- echo -en "\E[31m::DEBUG MODE::"
- tput sgr0 # reset colors to normal
+ echo -en "anything-sync-daemon \E[31m::DEBUG MODE::"
+ tput sgr0
echo
- echo "anything-sync-daemon version: $ASD_VERS"
+ echo "version: $ASD_VERS"
echo
echo "settings in /etc/asd.conf will make anything-sync-daemon manage the following dir/user combos when invoked:"
echo
@@ -164,8 +164,11 @@ case "$1" in
[[ -f $DAEMON_FILE ]] && sync && unsync
;;
*)
- echo -en "\E[31musage: "
- tput sgr0 # reset colors to normal
+ echo -en "anything-sync-daemon \E[31m::USAGE::"
+ tput sgr0
+ echo
+ echo "version: $ASD_VERS"
+ echo
echo "$0 {sync|unsync|debug}"
echo " sync) Force a manual sync."
echo "unsync) Force a manual unsync."
View
@@ -1,34 +0,0 @@
-#!/bin/bash
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/asd.conf
-
-export DAEMON_FILE=/run/asd
-
-case "$1" in
- start)
- stat_busy 'Starting Anything-Sync-Daemon'
- add_daemon asd
- /usr/bin/anything-sync-daemon sync
- stat_done
- ;;
- stop)
- stat_busy 'Stopping Anything-Sync-Daemon'
- /usr/bin/anything-sync-daemon unsync
- rm_daemon asd
- stat_done
- ;;
- sync)
- stat_busy 'Doing a user requested sync'
- if [[ -f $DAEMON_FILE ]]; then
- /usr/bin/anything-sync-daemon sync
- else
- stat_die
- fi
- stat_done
- ;;
- *)
- echo "usage $0 {start|stop|sync}"
- ;;
-esac
-exit 0

0 comments on commit ffb76e4

Please sign in to comment.