20180606
This commit is contained in:
parent
33f73c52fd
commit
39a1a114c3
13
gpio/info.sh
13
gpio/info.sh
@ -48,7 +48,7 @@ function INIT()
|
|||||||
bindir="/root/gpio";
|
bindir="/root/gpio";
|
||||||
! test -d ${bindir} && exit 1;
|
! test -d ${bindir} && exit 1;
|
||||||
|
|
||||||
. conf/info.conf
|
. ${bindir}/conf/info.conf
|
||||||
|
|
||||||
#时间
|
#时间
|
||||||
y=$(date "+%y");
|
y=$(date "+%y");
|
||||||
@ -228,6 +228,17 @@ case ${ai} in
|
|||||||
#exit
|
#exit
|
||||||
case $OPTARG in
|
case $OPTARG in
|
||||||
"stop")
|
"stop")
|
||||||
|
case $3 in
|
||||||
|
"wind")
|
||||||
|
kill $(cat ${bindir}/log/wind_daemon.pid) 2> ${null}
|
||||||
|
kill $(cat ${bindir}/log/wind.pid) 2> ${null}
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
"light")
|
||||||
|
kill `cat ${bindir}/log/light.pid` 2> ${null}
|
||||||
|
exit 1;
|
||||||
|
;;
|
||||||
|
esac
|
||||||
array=$(ls ${bindir}/log/)
|
array=$(ls ${bindir}/log/)
|
||||||
for arr in ${array[@]}; do
|
for arr in ${array[@]}; do
|
||||||
kill $(cat ${bindir}/log/${arr}) &> ${null}
|
kill $(cat ${bindir}/log/${arr}) &> ${null}
|
||||||
|
Loading…
Reference in New Issue
Block a user