Skip to content

Commit ade0329

Browse files
authored
Merge pull request #424 from yungwine/exec-start-pre
add ExecStartPre = sleep 2 to new installations
2 parents 5281abc + 44711d1 commit ade0329

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
@@ -73,7 +73,7 @@ def FirstNodeSettings(local):
7373
for shard in add_shard.split():
7474
cmd += f' --add-shard {shard}'
7575

76-
add2systemd(name="validator", user=vuser, start=cmd) # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
76+
add2systemd(name="validator", user=vuser, start=cmd, pre='/bin/sleep 2') # post="/usr/bin/python3 /usr/src/mytonctrl/mytoncore.py -e \"validator down\""
7777

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

0 commit comments

Comments
 (0)