File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 2
2
set -e
3
3
4
4
bashCmd=' bash -e'
5
- if [ " ${PH_VERBOSE:- 0} " -gt 0 ] ; then
5
+ if [ " ${PH_VERBOSE:- 0} " -gt 0 ] ; then
6
6
set -x ;
7
7
bashCmd=' bash -e -x'
8
8
fi
11
11
12
12
$bashCmd /start.sh
13
13
# 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) "
16
16
fi
17
17
if [ -z " $SKIPGRAVITYONBOOT " ]; then
18
18
gravity.sh
21
21
fi
22
22
23
23
# 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
25
25
26
26
pihole -v
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
3
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
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/with-contenv bash
2
2
3
3
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
4
7
s6-setuidgid ${DNSMASQ_USER} pihole-FTL $FTL_CMD >/dev/null 2>&1
5
8
6
9
# Notes on above:
You can’t perform that action at this time.
0 commit comments