Skip to content

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 join this conversation on GitHub. Already have an account? Sign in to comment
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