Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Allow running commands when peers come/go#47

Merged
skx merged 2 commits intomasterfrom
44-peerd-execute
May 13, 2023
Merged

Allow running commands when peers come/go#47
skx merged 2 commits intomasterfrom
44-peerd-execute

Conversation

@skx
Copy link
Owner

@skx skx commented May 13, 2023

We allow running a shell-command when a peer comes or goes from the group, and support expanding parameters in those shelp commands:

$NAME/${NAME} is the name of the node.
$IP/${IP} is the IP of the node.

Sample usage:

 sysbox peerd -run-up 'touch /tmp/$NAME.$IP'

Then:

  ls /tmp/fr*
  /tmp/frodo.home.192.168.1.101

This closes #44.

skx added 2 commits May 13, 2023 11:00
We allow running a shell-command when a peer comes or goes from the
group, and support expanding parameters in those shelp commands:

$NAME/${NAME} is the name of the node.
$IP/${IP} is the IP of the node.

Sample usage:

    sysbox peerd -run-up 'touch /tmp/$NAME.$IP'

Then:
    ls /tmp/fr*
    /tmp/frodo.home.192.168.1.101

This closes #44.
@skx skx merged commit 0102914 into master May 13, 2023
@skx skx deleted the 44-peerd-execute branch May 13, 2023 08:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Allow Peerd to execute commands on up/down

1 participant