Update builroot start script to launch Domo.

This commit is contained in:
2016-03-02 22:52:34 +01:00
parent e5d16cc573
commit dda208b3d4
12 changed files with 145 additions and 3 deletions

View File

@@ -2,6 +2,7 @@
NAME=ubusd
DAEMON=/opt/Domo/bin/$NAME
export LD_LIBRARY_PATH=/opt/Domo/lib/
# Gracefully exit if the package has been removed.

View File

@@ -2,6 +2,7 @@
NAME=domod
DAEMON=/opt/Domo/bin/$NAME
export LD_LIBRARY_PATH=/opt/Domo/lib/
export DOMO_WRITE_PATH=/home/rpi/domo

View File

@@ -2,6 +2,7 @@
NAME=sprinklersd
DAEMON=/opt/Domo/bin/$NAME
export LD_LIBRARY_PATH=/opt/Domo/lib/
# Gracefully exit if the package has been removed.

View File

@@ -0,0 +1,34 @@
#! /bin/sh
NAME=chacond
DAEMON=/opt/Domo/bin/$NAME
PIN_NUMBER=17
export LD_LIBRARY_PATH=/opt/Domo/lib/
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
case "$1" in
start)
printf "Starting $NAME: "
start-stop-daemon -S -q -b -x $DAEMON $PIN_NUMBER --
[ $? = 0 ] && echo "OK" || echo "FAIL"
;;
stop)
printf "Stopping $NAME: "
start-stop-daemon -K -q -n $NAME
;;
restart|reload)
echo "Restarting $NAME: "
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}" >&2
exit 1
;;
esac
exit 0

View File

@@ -2,6 +2,7 @@
NAME=restd
DAEMON=/opt/Domo/bin/$NAME
export LD_LIBRARY_PATH=/opt/Domo/lib/
# Gracefully exit if the package has been removed.

View File

@@ -1,6 +1,10 @@
# Acces aux scripts personnels et code metier.
PATH=$PATH:/usr/local/bin
LD_LIBRARY_PATH=/opt/Domo/lib
PATH=$PATH:/usr/local/bin:/opt/Domo/bin/
# Access to the custom libraries
export LD_LIBRARY_PATH=/opt/Domo/lib/
export DOMO_WRITE_PATH=/home/rpi/domo
# Prompt indiquant nom d'hote et repertoire courant.
PS1='\h[\W]\$ '