Skip to content

Commit 8d57c8c

Browse files
authored
Merge pull request pi-hole#797 from pi-hole/dev
Dev -> master
2 parents 75328c6 + ea7f659 commit 8d57c8c

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

s6/debian-root/etc/cont-init.d/20-start.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
bashCmd='bash -e'
5-
if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then
5+
if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then
66
set -x ;
77
bashCmd='bash -e -x'
88
fi
@@ -11,8 +11,8 @@ fi
1111

1212
$bashCmd /start.sh
1313
# Gotta go fast, no time for gravity
14-
if [ -n "$PYTEST" ]; then
15-
sed -i 's/^gravity_spinup$/#gravity_spinup # DISABLED FOR PYTEST/g' "$(which gravity.sh)"
14+
if [ -n "$PYTEST" ]; then
15+
sed -i 's/^gravity_spinup$/#gravity_spinup # DISABLED FOR PYTEST/g' "$(which gravity.sh)"
1616
fi
1717
if [ -z "$SKIPGRAVITYONBOOT" ]; then
1818
gravity.sh
@@ -21,6 +21,6 @@ else
2121
fi
2222

2323
# Kill dnsmasq because s6 won't like it if it's running when s6 services start
24-
kill -9 $(pgrep pihole-FTL) || true
24+
kill -9 $(pgrep pihole-FTL) || true # TODO: REVISIT THIS SO AS TO NOT kill -9
2525

2626
pihole -v
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/with-contenv bash
22

33
s6-echo "Stopping pihole-FTL"
4-
kill -9 $(pgrep pihole-FTL)
4+
kill -9 $(pgrep pihole-FTL) # TODO: REVISIT THIS SO AS TO NOT kill -9

s6/debian-root/etc/services.d/pihole-FTL/run

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/with-contenv bash
22

33
s6-echo "Starting pihole-FTL ($FTL_CMD) as ${DNSMASQ_USER}"
4+
# Remove possible leftovers from previous pihole-FTL processes
5+
rm -f /dev/shm/FTL-* 2> /dev/null
6+
rm /run/pihole/FTL.sock 2> /dev/null
47
s6-setuidgid ${DNSMASQ_USER} pihole-FTL $FTL_CMD >/dev/null 2>&1
58

69
# Notes on above:

0 commit comments

Comments
 (0)