Merge pull request #6 from hotsezus/master

Add start, restart, reload
This commit is contained in:
itdoginfo
2023-04-02 07:40:28 +03:00
committed by GitHub
2 changed files with 104 additions and 90 deletions

View File

@@ -79,7 +79,7 @@
lineinfile:
path: /etc/crontabs/root
create: yes
line: "0 4 * * * /etc/init.d/hirkn"
line: "0 4 * * * /etc/init.d/hirkn reload"
when: check_cron.stdout == ""
- name: enable and start crontab

View File

@@ -2,6 +2,7 @@
START=99
script () {
dir=/tmp/lst
SUBNET=https://antifilter.download/list/subnet.lst
IP=https://antifilter.download/list/ip.lst
@@ -98,3 +99,16 @@ echo "Dnsmasq restart"
echo "Firewall restart"
/etc/init.d/firewall restart
}
start () {
script
}
restart () {
script
}
reload () {
script
}