From caa880f8457304c793c1f95759f211694831c833 Mon Sep 17 00:00:00 2001 From: DeflateAwning <11021263+DeflateAwning@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:44:57 -0700 Subject: [PATCH 1/3] Add instructions to reload the configuration Fixes #131 --- readme-vars.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/readme-vars.yml b/readme-vars.yml index 3f07624..844040a 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -28,9 +28,11 @@ param_env_vars: # application setup block app_setup_block_enabled: true app_setup_block: | - * Once running the URL will be `http:///smokeping/smokeping.cgi`. For example a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`. - * Basics are, edit the `Targets` file to ping the hosts you're interested in to match the format found there. + * Once running, the URL will be `http:///smokeping/smokeping.cgi`. For example, a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`. + * Basic setup: edit the `Targets` file to ping the hosts you're interested in to match the format found there. * Wait 10 minutes. + * To reload the configuration without restarting the container, run `docker exec $CID s6-svc -h /run/service/svc-smokeping`, where `$CID` is the container ID (e.g., `smokeping`). + * To restart the container, run `docker restart $CID`. # changelog changelogs: From 8bea3d1ad908e4aac3803d357399f91134311109 Mon Sep 17 00:00:00 2001 From: DeflateAwning <11021263+DeflateAwning@users.noreply.github.com> Date: Fri, 10 Nov 2023 14:32:43 -0700 Subject: [PATCH 2/3] Fix "reload config" command Source: https://github.com/linuxserver/docker-smokeping/issues/131#issuecomment-1806450170 --- readme-vars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme-vars.yml b/readme-vars.yml index 844040a..7e99121 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -31,7 +31,7 @@ app_setup_block: | * Once running, the URL will be `http:///smokeping/smokeping.cgi`. For example, a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`. * Basic setup: edit the `Targets` file to ping the hosts you're interested in to match the format found there. * Wait 10 minutes. - * To reload the configuration without restarting the container, run `docker exec $CID s6-svc -h /run/service/svc-smokeping`, where `$CID` is the container ID (e.g., `smokeping`). + * To reload the configuration without restarting the container, run `docker exec $CID pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `$CID` is the container ID (e.g., `smokeping`). * To restart the container, run `docker restart $CID`. # changelog From 931e521a830680bef8509681ad6f2c0ffe797b87 Mon Sep 17 00:00:00 2001 From: DeflateAwning <11021263+DeflateAwning@users.noreply.github.com> Date: Sun, 12 Nov 2023 21:45:10 -0700 Subject: [PATCH 3/3] Hardcode container ID in docs --- readme-vars.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme-vars.yml b/readme-vars.yml index 7e99121..7575432 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -31,8 +31,8 @@ app_setup_block: | * Once running, the URL will be `http:///smokeping/smokeping.cgi`. For example, a full URL might look like `https://smokeping.yourdomain.com/smokeping/smokeping.cgi`. * Basic setup: edit the `Targets` file to ping the hosts you're interested in to match the format found there. * Wait 10 minutes. - * To reload the configuration without restarting the container, run `docker exec $CID pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `$CID` is the container ID (e.g., `smokeping`). - * To restart the container, run `docker restart $CID`. + * To reload the configuration without restarting the container, run `docker exec smokeping pkill -f -HUP '/usr/bin/perl /usr/s?bin/smokeping(_cgi)?'`, where `smokeping` is the container ID. + * To restart the container, run `docker restart smokeping`, where `smokeping` is the container ID. # changelog changelogs: