Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conode runscript 721 #775

Merged
merged 20 commits into from
Jan 13, 2017
Merged

Conode runscript 721 #775

merged 20 commits into from
Jan 13, 2017

Conversation

ineiti
Copy link
Member

@ineiti ineiti commented Jan 12, 2017

Closes #721

@ineiti ineiti self-assigned this Jan 12, 2017

VERSION=1.0-pre1
MAILCMD=mail
MAILADDR=linus.gasser@epfl.ch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any reference as how to use run_conode ? in the README ?
If so, do you specifiy that it sends a log to this address automatically if mail is installed ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only when called with -mail. I'll add that to the output.

#!/usr/bin/env bash
set -e

VERSION=1.0-pre1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, we should have a consistent versionning system, putting at two places seems like trouble for the future...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's possible to make onet.Server prints out the version or stg ? Or conode binary ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm - can't run onet.Server here... But I can do some grep-magick...

echo "Moving cothorityd-directory to conode"
mv $PATH_CO/cothorityd $PATH_CO/conode
echo 0.9 > $PATH_VERSION
elif [ -d $PATH_CO/cothority ]; then
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it not the same thing ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, there has been some cothorityd and some cothority...

@nikkolasg
Copy link
Contributor

I don't quite get the difference between run_conode.sh <public> <private> and just cd conode; go build && ./conode.
In general, can you add a very short sentence to say what is run_conode.sh useful for and how to use it ?

@ineiti
Copy link
Member Author

ineiti commented Jan 13, 2017

run_conode.sh gives you:

  • migration of data in {.config,Library}/{cothority,conode}
  • loop around conode if it dies
  • automatic updates (-update)
  • sending of log-files (-mail)


`./run_conode.sh -mail -update`

And it will send an email to DEDIS with the last 200 lines of log-output every time conode restarts.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the And.

@nikkolasg nikkolasg merged commit ac0f047 into master Jan 13, 2017
@nikkolasg nikkolasg deleted the conode-runscript_721 branch January 13, 2017 16:05
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.

2 participants