termux-services: add down and log/down to CONFFILES

Otherwise they are always added again when a package with a service
script is updated.
This commit is contained in:
Henrik Grimler 2020-03-20 20:06:37 +01:00
parent 7ab5ac7ca2
commit 6528540bbc
1 changed files with 2 additions and 0 deletions

View File

@ -29,11 +29,13 @@ termux_step_install_service_scripts() {
# Avoid creating service/<service>/log/log/
if [ "${TERMUX_PKG_SERVICE_SCRIPT[$i]: -4}" != "/log" ]; then
touch ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/down
TERMUX_PKG_CONFFILES+=" var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/down"
mkdir -p ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log
ln -sf $TERMUX_PREFIX/share/termux-services/svlogger ${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run
TERMUX_PKG_CONFFILES+="
var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/run
var/service/${TERMUX_PKG_SERVICE_SCRIPT[$i]}/log/down
"
fi
done