Lines 18-23
Link Here
|
18 |
return 1 |
17 |
return 1 |
19 |
fi |
18 |
fi |
20 |
|
19 |
|
|
|
20 |
local -i free_space |
21 |
local fs |
22 |
|
23 |
if [[ `mount | grep \/var` -eq 0 ]]; then |
24 |
fs='/var' |
25 |
else |
26 |
fs='rootfs' |
27 |
fi |
28 |
|
29 |
free_space=`df | grep $fs | gawk '{ print $3 }'` |
30 |
if [[ $free_space < 2048 ]]; then |
31 |
ewarn "$fs has few disk space ($free_space) left, lighttpd will bug" |
32 |
return 1 |
33 |
fi |
34 |
|
21 |
/usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null |
35 |
/usr/sbin/lighttpd -t -f ${LIGHTTPD_CONF} >/dev/null |
22 |
} |
36 |
} |
23 |
|
37 |
|