diff options
Diffstat (limited to 'meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh')
-rw-r--r-- | meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh new file mode 100644 index 00000000..9ebfa35a --- /dev/null +++ b/meta-ti-bsp/recipes-ti/ipc/ti-ipc/tiipclad-daemon.sh | |||
@@ -0,0 +1,25 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | tiipclad_daemon=/usr/bin/__LAD_DAEMON__ | ||
4 | tiipclad_params="-g -l lad.txt" | ||
5 | |||
6 | test -x "$tiipclad_daemon" || exit 0 | ||
7 | |||
8 | case "$1" in | ||
9 | start) | ||
10 | echo -n "Starting tiipclad daemon" | ||
11 | start-stop-daemon --start --quiet \ | ||
12 | --exec $tiipclad_daemon -- $tiipclad_params | ||
13 | echo "." | ||
14 | ;; | ||
15 | stop) | ||
16 | echo -n "Stopping tiipclad daemon" | ||
17 | start-stop-daemon --stop --quiet --pidfile /var/run/tiipclad.pid | ||
18 | echo "." | ||
19 | ;; | ||
20 | *) | ||
21 | echo "Usage: /etc/init.d/tiipclad-daemon.sh {start|stop}" | ||
22 | exit 1 | ||
23 | esac | ||
24 | |||
25 | exit 0 | ||