mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +00:00
Add -s switch to kill command to increase compatability
This commit is contained in:
parent
77f4126f9b
commit
3d4bff9414
@ -181,7 +181,7 @@ function Reload() {
|
|||||||
|
|
||||||
if [[ $dnsmasqPid ]]; then
|
if [[ $dnsmasqPid ]]; then
|
||||||
# service already running - reload config
|
# service already running - reload config
|
||||||
$SUDO kill -HUP "$dnsmasqPid"
|
$SUDO kill -s HUP "$dnsmasqPid"
|
||||||
else
|
else
|
||||||
# service not running, start it up
|
# service not running, start it up
|
||||||
$SUDO service dnsmasq start
|
$SUDO service dnsmasq start
|
||||||
|
@ -194,7 +194,7 @@ function Reload() {
|
|||||||
|
|
||||||
if [[ $dnsmasqPid ]]; then
|
if [[ $dnsmasqPid ]]; then
|
||||||
# service already running - reload config
|
# service already running - reload config
|
||||||
$SUDO kill -HUP "$dnsmasqPid"
|
$SUDO kill -s HUP "$dnsmasqPid"
|
||||||
else
|
else
|
||||||
# service not running, start it up
|
# service not running, start it up
|
||||||
$SUDO service dnsmasq start
|
$SUDO service dnsmasq start
|
||||||
|
@ -320,7 +320,7 @@ function gravity_reload() {
|
|||||||
|
|
||||||
if [[ $dnsmasqPid ]]; then
|
if [[ $dnsmasqPid ]]; then
|
||||||
# service already running - reload config
|
# service already running - reload config
|
||||||
$SUDO kill -HUP "$dnsmasqPid"
|
$SUDO kill -s HUP "$dnsmasqPid"
|
||||||
else
|
else
|
||||||
# service not running, start it up
|
# service not running, start it up
|
||||||
$SUDO service dnsmasq start
|
$SUDO service dnsmasq start
|
||||||
|
Loading…
Reference in New Issue
Block a user