-
Notifications
You must be signed in to change notification settings - Fork 1
/
rc.local
executable file
·22 lines (18 loc) · 906 Bytes
/
rc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/bin/su `id -un -- 1000` -c "/usr/bin/screen -dmS beacon-screen bash -c '/home/`id -un -- 1000`/prysmatic_bazel/beacon_chain_restarter.sh; exec bash'"
/bin/su `id -un -- 1000` -c "/usr/bin/screen -dmS validator-screen bash -c '/home/`id -un -- 1000`/prysmatic_bazel/validator_restarter.sh; exec bash'"
/bin/su `id -un -- 1000` -c "/usr/bin/screen -dmS geth bash -c '/home/`id -un -- 1000`/prysmatic_bazel/launch_geth.sh; exec bash'"
#Disable the watcher for now.
#/bin/su `id -un -- 1000` -c "/usr/bin/screen -dmS watcher bash -c '/home/`id -un -- 1000`/prysm/validator_watcher.sh; exec bash'"
exit 0