rm indexcache when stopping lucid
This commit is contained in:
parent
1fb8df8e8b
commit
aaf1d86028
|
@ -9,6 +9,7 @@ set -e
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n "Starting $DESC: $NAME"
|
echo -n "Starting $DESC: $NAME"
|
||||||
|
[ -e /tmp/luci-indexcache ] && rm /tmp/luci-indexcache
|
||||||
lua -lluci.lucid -e 'luci.lucid.start()'
|
lua -lluci.lucid -e 'luci.lucid.start()'
|
||||||
echo "."
|
echo "."
|
||||||
}
|
}
|
||||||
|
@ -16,6 +17,7 @@ start() {
|
||||||
stop() {
|
stop() {
|
||||||
echo -n "Stopping $DESC: $NAME"
|
echo -n "Stopping $DESC: $NAME"
|
||||||
lua -lluci.lucid -e 'luci.lucid.stop()'
|
lua -lluci.lucid -e 'luci.lucid.stop()'
|
||||||
|
[ -e /tmp/luci-indexcache ] && rm /tmp/luci-indexcache
|
||||||
echo "."
|
echo "."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue