Skip to content

Commit 7198ed1

Browse files
committed
add ExecStartPre = sleep 2 to new installations
1 parent 2fb8239 commit 7198ed1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytoninstaller/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def FirstNodeSettings(local):
6666
# Прописать автозагрузку
6767
cpus = psutil.cpu_count() - 1
6868
cmd = f"{validatorAppPath} --threads {cpus} --daemonize --global-config {globalConfigPath} --db {ton_db_dir} --logname {tonLogPath} --archive-ttl {archive_ttl} --verbosity 1"
69-
add2systemd(name="validator", user=vuser, start=cmd) # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
69+
add2systemd(name="validator", user=vuser, start=cmd, pre='/bin/sleep 2') # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
7070

7171
# Получить внешний ip адрес
7272
ip = get_own_ip()

0 commit comments

Comments
 (0)