RE: Essential Guide to Becoming a Steem Witness

You are viewing a single comment's thread from:

Essential Guide to Becoming a Steem Witness

in steemhelp •  9 years ago 

Nice! This should be very helpful for new witnesses. Just wanted to add another potentially useful tidbit.

"Redirect your stderr (and stdout) on start-up so your witness doesn’t go down when you disconnect from SSH. See the example start command below for how this is done."

You can also accomplish this by running the witness command from within a screen session. The added benefit of using screen is that you can have multiple windows for monitoring the server.

To Install
sudo apt-get install screen

Start the screen session
screen

Open additional screen window
ctrl-c a (hit ctrl-a, release and press c immediately after)

Cycle through to the next window
ctrl-a n (hit ctrl-a, release and press n immediately after)

To Detach(Use before exiting server)
ctrl-a d

As long as you started the steem binary within screen and detach before disconnecting, it should continue running after you disconnect

To reconnect to a screen session after reconnecting to the server you can use the following commands:
screen -r
or
screen -dr

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

I prefer tmux. : )

byobu is pretty nice too !

 ctrl-a H (Please be careful, we use capital ‘H’ letter)  - Write output screen session text to log file.