acme: Change boot init script logic to invoke start

The new procd config dependency tracking requires the start method to be
called even on boot. So add a state file that is checked by the run script
to condition the special-case boot run instead of the previous independent
call to the run script.

Ref: https://github.com/openwrt/luci/pull/1769

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
This commit is contained in:
Toke Høiland-Jørgensen
2018-05-07 11:48:26 +02:00
parent f73f39eed1
commit 7e1dfc2dc5
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ stop_service() {
}
boot() {
$SCRIPT check_cron
touch "/var/run/acme_boot"
start
}
service_triggers()