Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nucleo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
Miguel Montes
nucleo
Commits
f82e55f6
Commit
f82e55f6
authored
6 years ago
by
Robert Martin-Legene
Browse files
Options
Downloads
Patches
Plain Diff
Fixed documentation to call the correct script from crontab on reboot. Also changed cron.sh a bit.
parent
4c8d5924
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
bin/cron.sh
+10
-3
10 additions, 3 deletions
bin/cron.sh
with
11 additions
and
4 deletions
README.md
+
1
−
1
View file @
f82e55f6
...
...
@@ -9,7 +9,7 @@
4.
`source ${HOME}/bfa/bin`
-
You can include this line in your .bash_profile if you want.
-
It is perfectly safe to source it multiple times.
5.
Install this crontab:
`@reboot bfa/
network5445/start
.sh`
5.
Install this crontab:
`@reboot bfa/
bin/cron
.sh`
-
If you are running a sealer you MUST do this.
6.
run
`start.sh`
. This will start synchronizing and probably takes at least an hour.
7.
Change your node's settings with
`syncmode.sh`
...
...
This diff is collapsed.
Click to expand it.
bin/cron.sh
+
10
−
3
View file @
f82e55f6
#!/bin/bash
trap
'exit 1'
ERR
# Go $HOME
cd
# Log in home directory
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
exec
< /dev/null
>
/dev/null 2> /dev/null
(
./start.sh &
while
./monitor.sh
||
true
# 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
sleep
60
./monitor.sh
done
&
)
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