1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-25 08:47:48 +02:00
docker-pi-hole/s6
Peter Dave Hello b29ac1ec18 Use consistent method to kill process in s6 finish script
If the process does not exist, the error message of `kill` command is a
little bit confusing:

`kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]`

Using `killall` in `/s6/debian-root/etc/services.d/pihole-FTL/finish` to
kill the process, like what we do in `cron/finish` & `lighttpd/finish`,
will make the usage in this project more consistent, and also, the
command `killall` will provide better & friendly output, like:

`pihole-FTL: no process found`

Close #986, cc #973

Signed-off-by: Peter Dave Hello <hsu@peterdavehello.org>
2022-01-17 22:19:23 +08:00
..
debian-root Use consistent method to kill process in s6 finish script 2022-01-17 22:19:23 +08:00
service When restarting the service - wait until the old proc has been killed before attempting to start it again. Prevents messages about the usuage of kill in the log. 2022-01-07 23:14:28 +00:00
timeout alpine 3.2 startup tests fixed, web still failing 2017-12-11 10:28:15 -06:00