add finish scripts to restart cleanly

Signed-off-by: Adam Hill <adam@diginc.us>
This commit is contained in:
Adam Hill 2018-07-19 22:56:59 -05:00
parent 520669a6b9
commit 0e7ab463fa
No known key found for this signature in database
GPG Key ID: 2193804FCA429855
4 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
s6-echo "Stopping cron"
killall -9 cron

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
s6-echo "Stopping lighttpd"
killall -9 lighttpd

View File

@ -1,5 +1,4 @@
#!/usr/bin/with-contenv bash
s6-echo "Starting lighttpd"
lighttpd -D -f /etc/lighttpd/lighttpd.conf

View File

@ -0,0 +1,4 @@
#!/usr/bin/with-contenv bash
s6-echo "Stopping pihole-FTL"
/etc/init.d/pihole-FTL stop