lede/package/lean/luci-app-jd-dailybonus/root/etc/init.d/jd-dailybonus
Beginner 26afd3e54d
luci-app-jd-dailybonus: minor adjustments (#8113)
Signed-off-by: Beginner-Go <70857188+Beginner-Go@users.noreply.github.com>
2021-10-23 18:05:07 +08:00

32 lines
484 B
Bash
Executable File

#!/bin/sh /etc/rc.common
#
# Copyright (C) 2020 Jerryk
#
# This is free software, licensed under the GNU General Public License v3.
# See /LICENSE for more information.
#
USE_PROCD=1
START=25
NAME=jd-dailybonus
CRON_FILE=/etc/crontabs/root
del_cron() {
sed -i '/jd-dailybonus/d' $CRON_FILE
/etc/init.d/cron restart
}
start_service(){
sh /usr/share/jd-dailybonus/newapp.sh -s
}
stop_service() {
del_cron
}
service_triggers() {
procd_add_reload_trigger "jd-dailybonus"
}