linuxserver / docker-smokeping

GNU General Public License v3.0
347 stars 95 forks source link

Make changes so Slave instances can be launched #118

Closed ghost closed 2 years ago

ghost commented 3 years ago

linuxserver.io

Description:

This is a modified version of the following issue: https://github.com/linuxserver/docker-smokeping/issues/115 - credit should go to them for this pull.

#!/usr/bin/with-contenv bash

if [ -a /config/MasterUrl ] && [ -a /config/SlaveSecret ]; then
    chmod 600 /config/SlaveSecret
    chmod 600 /config/MasterUrl
    masterurl=$(cat /config/MasterUrl)
    exec s6-setuidgid abc  /usr/bin/smokeping --master-url=$masterurl --cache-dir=/tmp --shared-secret=/config/SlaveSecret --nodaemon
else
    exec s6-setuidgid abc  /usr/bin/smokeping --config="/etc/smokeping/config" --nodaemon
fi

Benefits of this PR and context:

This adds master/slave configuration: https://oss.oetiker.ch/smokeping/doc/smokeping_master_slave.en.html

How Has This Been Tested?

Source / References:

https://github.com/linuxserver/docker-smokeping/issues/115

LinuxServer-CI commented 3 years ago

I am a bot, here are the test results for this PR: https://ci-tests.linuxserver.io/lspipepr/smokeping/2.7.3-r5-pkg-553e4cff-pr-118/index.html https://ci-tests.linuxserver.io/lspipepr/smokeping/2.7.3-r5-pkg-553e4cff-pr-118/shellcheck-result.xml

github-actions[bot] commented 3 years ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

gee456 commented 2 years ago

Can we do a pull into the main branch?

github-actions[bot] commented 2 years ago

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dpremy commented 1 year ago

Bummer to see this was not merged, been fighting getting a slave setup and this would have been an easy fix.

gee456 commented 1 year ago

Why was this not merged in? It fixed a real problem and added fuctionalit as well it was a simple change?

Roxedus commented 1 year ago

The OPs github account is deleted. There is noone on the Team that has the knowledge needed with smokeping test this PR