Merge pull request #6017 from tohojo/master

acme: Change boot init script logic to invoke start
This commit is contained in:
Hannu Nyman 2018-05-13 18:36:18 +03:00 committed by GitHub
commit 12a833d09f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=acme PKG_NAME:=acme
PKG_VERSION:=2.7.8 PKG_VERSION:=2.7.8
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_LICENSE:=GPLv3 PKG_LICENSE:=GPLv3
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git

View file

@ -25,7 +25,8 @@ stop_service() {
} }
boot() { boot() {
$SCRIPT check_cron touch "/var/run/acme_boot"
start
} }
service_triggers() service_triggers()

View file

@ -234,6 +234,7 @@ load_vars()
check_cron check_cron
[ -n "$CHECK_CRON" ] && exit 0 [ -n "$CHECK_CRON" ] && exit 0
[ -e "/var/run/acme_boot" ] && rm -f "/var/run/acme_boot" && exit 0
config_load acme config_load acme
config_foreach load_vars acme config_foreach load_vars acme