diff --git a/scripts/set_archive_ttl.py b/scripts/set_archive_ttl.py index afd74064..f11fd436 100644 --- a/scripts/set_archive_ttl.py +++ b/scripts/set_archive_ttl.py @@ -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`.')