Browse Source

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

Otherwise they are always added again when a package with a service
script is updated.
master
Henrik Grimler 5 years ago
parent
commit
938e9b2210
  1. 2
      scripts/build/termux_step_install_service_scripts.sh

2
scripts/build/termux_step_install_service_scripts.sh

@ -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

Loading…
Cancel
Save