Skip to content

Commit

Permalink
fix: Update interactive installer to handle syslog deprecation [DEV-4…
Browse files Browse the repository at this point in the history
…630] (#820)

* Update interactive installer

* Linter and typos fixes

* Remove unused variable

* Update cosmovisor systemd template

---------

Co-authored-by: Ankur Banerjee <[email protected]>
  • Loading branch information
filipdjokic and ankurdotb authored Dec 14, 2024
1 parent f2e0698 commit 55d9679
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 204 deletions.
232 changes: 49 additions & 183 deletions installer/installer.py

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions installer/templates/cheqd-cosmovisor.service
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ RestartSec=30
StartLimitBurst=5
StartLimitInterval=60
TimeoutSec=120
StandardOutput=syslog
StandardError=syslog
SyslogFacility=syslog
StandardOutput=journal
StandardError=journal
SyslogIdentifier=cosmovisor
LimitNOFILE=65535

Expand Down
6 changes: 2 additions & 4 deletions installer/templates/cheqd-noded.service
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ RestartSec=30
StartLimitBurst=5
StartLimitInterval=60
TimeoutSec=120
StandardOutput=syslog
StandardError=syslog
SyslogFacility=syslog
SyslogIdentifier=cheqd-noded
StandardOutput=journal
StandardError=journal
LimitNOFILE=65535

[Install]
Expand Down
43 changes: 43 additions & 0 deletions installer/templates/journald.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See journald.conf(5) for details.

[Journal]
Storage=persistent
SystemMaxUse=1G
SystemMaxFiles=5
#Compress=yes
#Seal=yes
#SplitMode=uid
#SyncIntervalSec=5m
#RateLimitIntervalSec=30s
#RateLimitBurst=10000
#SystemKeepFree=
#SystemMaxFileSize=
#RuntimeMaxUse=
#RuntimeKeepFree=
#RuntimeMaxFileSize=
#RuntimeMaxFiles=100
#MaxRetentionSec=
#MaxFileSec=1month
#ForwardToSyslog=yes
#ForwardToKMsg=no
#ForwardToConsole=no
#ForwardToWall=yes
#TTYPath=/dev/console
#MaxLevelStore=debug
#MaxLevelSyslog=debug
#MaxLevelKMsg=notice
#MaxLevelConsole=info
#MaxLevelWall=emerg
#LineMax=48K
#ReadKMsg=yes
9 changes: 0 additions & 9 deletions installer/templates/logrotate.conf

This file was deleted.

2 changes: 0 additions & 2 deletions installer/templates/rsyslog.conf

This file was deleted.

1 change: 0 additions & 1 deletion installer/tests/upgrade-existing-cosmovisor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ yes
no
yes
yes
yes
1 change: 0 additions & 1 deletion installer/tests/upgrade-existing-standalone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
no
yes
yes
yes
1 change: 0 additions & 1 deletion installer/tests/upgrade-to-cosmovisor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ yes
yes
no
yes
yes
yes

0 comments on commit 55d9679

Please sign in to comment.