diff options
author | Dan Schaper <dan.schaper@pi-hole.net> | 2022-08-05 03:20:39 +0300 |
---|---|---|
committer | Dan Schaper <dan.schaper@pi-hole.net> | 2022-08-05 03:20:39 +0300 |
commit | 989c52ef241baa110d6a588fa42348384453f702 (patch) | |
tree | 8f6455328977b5526c10138c8e7aa34967402b6f | |
parent | 4a589286b71861cdf4125e2fcb89ae2c03dca19f (diff) |
Exit with return code if ftl does not start4856-init-script-ftl
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
-rw-r--r-- | advanced/Templates/pihole-FTL.service | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/advanced/Templates/pihole-FTL.service b/advanced/Templates/pihole-FTL.service index 7a541d0d..46e5c1f2 100644 --- a/advanced/Templates/pihole-FTL.service +++ b/advanced/Templates/pihole-FTL.service @@ -58,10 +58,10 @@ start() { fi if setcap CAP_NET_BIND_SERVICE,CAP_NET_RAW,CAP_NET_ADMIN,CAP_SYS_NICE,CAP_IPC_LOCK,CAP_CHOWN+eip "/usr/bin/pihole-FTL"; then - su -s /bin/sh -c "/usr/bin/pihole-FTL" pihole + su -s /bin/sh -c "/usr/bin/pihole-FTL" pihole || exit $? else echo "Warning: Starting pihole-FTL as root because setting capabilities is not supported on this system" - /usr/bin/pihole-FTL + /usr/bin/pihole-FTL || exit $? fi echo fi |