Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion scripts/set_archive_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
print('Archive TTL is already set')
sys.exit(100)

default_command = 'ExecStart = /usr/bin/ton/validator-engine/validator-engine --threads --daemonize --global-config /usr/bin/ton/global.config.json --db /var/ton-work/db/ --logname /var/ton-work/log --state-ttl 604800 --verbosity 1'
default_command = 'ExecStart = /usr/bin/ton/validator-engine/validator-engine --threads --daemonize --global-config /usr/bin/ton/global.config.json --db /var/ton-work/db/ --logname /var/ton-work/log --state-ttl 604800 --verbosity'

# ExecStart = /usr/bin/ton/validator-engine/validator-engine --threads 31 --daemonize --global-config /usr/bin/ton/global.config.json --db /var/ton-work/db/ --logname /var/ton-work/log --state-ttl 604800 --verbosity 1

t = exec_start.split(' ')
t.pop(t.index('--threads') + 1) # pop threads value since it's different for each node
t.pop(t.index('--verbosity') + 1) # pop verbosity value

if ' '.join(t) != default_command:
print('ExecStart is not default. Please set archive-ttl manually in `/etc/systemd/system/validator.service`.')
Expand Down