Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blockchain
nucleo
Commits
3b3f98a4
Commit
3b3f98a4
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Starting monitor from start.sh. Cron.sh now only calls start.sh
parent
41011091
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/cron.sh
+1
-10
1 addition, 10 deletions
bin/cron.sh
bin/installbfa.sh
+1
-0
1 addition, 0 deletions
bin/installbfa.sh
bin/start.sh
+20
-0
20 additions, 0 deletions
bin/start.sh
with
22 additions
and
10 deletions
bin/cron.sh
+
1
−
10
View file @
3b3f98a4
...
...
@@ -8,13 +8,4 @@ exec < /dev/null > bfa-cron-output.log 2>&1
# Go to script bin, 'cause we expect to find $BFAHOME/bin/env there
cd
`
dirname
$0
`
source
./env
(
./start.sh &
# Yes, we wait 60 seconds after starting the server.
# If you don't want to wait, kill the sleep.. the || true
# will capture the ERR trap.
while
sleep
60
||
true
do
./monitor.sh
done
&
)
./start.sh
This diff is collapsed.
Click to expand it.
bin/installbfa.sh
+
1
−
0
View file @
3b3f98a4
...
...
@@ -163,6 +163,7 @@ function usersetup
info Adding to automatically
source
\~
bfa/bfa/bin/env via .bashrc
echo
'source ~/bfa/bin/env'
>>
.bashrc
fi
mkdir
~bfa/bfa/network
}
function
cronit
...
...
This diff is collapsed.
Click to expand it.
bin/start.sh
+
20
−
0
View file @
3b3f98a4
...
...
@@ -80,6 +80,25 @@ function startbootnode
)
9>>
$pidfile
}
function
startmonitor
{
local
pidfile
=
${
BFANETWORKDIR
}
/monitor.pid
(
flock
--nonblock
--exclusive
9
||
(
echo
"A monitor is already running."
false
)
||
exit
sleep
15
while
:
do
monitor.sh &
echo
$!
>
$pidfile
wait
sleep
60
done
&
)
9>>
$pidfile
}
function
startgeth
{
# Start the node.
...
...
@@ -121,3 +140,4 @@ function startgeth
startgeth
startbootnode
startmonitor
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment