#! /bin/sh
#
#Copyright (c) 2012 ZTE Incorporated.  All Rights Reserved.
#ZTE Proprietary and Confidential.

# ztesyntime        init.d script to start ztesyntime daemon

set -e

case "$1" in
  start)
        echo -n "Starting ztesyntime: "
        start-stop-daemon -S -b -a /usr/bin/ztesyntime
        echo "done"
        ;;
  stop)
        echo -n "Stopping ztesyntime: "
        start-stop-daemon -K -n ztesyntime
        echo "done"
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage ztesyntime { start | stop | restart}" >&2
        exit 1
        ;;
esac


exit 0
