summaryrefslogtreecommitdiffstats
path: root/recipes-ti/ipc/files/tiipclad-daemon.sh
blob: 54b3888238911bd5268a57374ff0c8eb2070897f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh

tiipclad_daemon=/usr/bin/lad_tci6638
tiipclad_params=lad.txt

test -x "$tiipclad_daemon" || exit 0

case "$1" in
  start)
    echo -n "Starting tiipclad daemon"
    start-stop-daemon --start --quiet --exec $tiipclad_daemon $tiipclad_params
    echo "."
    ;;
  stop)
    echo -n "Stopping tiipclad daemon"
    start-stop-daemon --stop --quiet --pidfile /var/run/tiipclad.pid
    echo "."
    ;;
  *)
    echo "Usage: /etc/init.d/tiipclad-daemon.sh {start|stop}"
    exit 1
esac

exit 0