#! /bin/sh
# /etc/init.d/acua_update: start/stop the acua update daemon.
# Written by Robert Davidson <acua@acua.ebbs.com.au>
# Version 1.01

test -x /usr/sbin/acua_updated || exit 0

case "$1" in
  start)
      echo -n "Starting acua_updated: acua_updated"
      start-stop-daemon --start --quiet --exec /usr/sbin/acua_updated
      echo "."
    ;;
  stop)
      echo -n "Shutting down acua_updated: acua_updated"
      start-stop-daemon --stop --quiet --exec /usr/sbin/acua_updated
      echo "."
    ;;
  restart)
      $0 stop
      $0 start
    ;;
  *)
      echo "Usage: /etc/init.d/acua_update {start|stop|restart}"
      exit 1
    ;;
esac

exit 0
