Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: jans-linux-setup set DefaultTimeoutStartSec=300s #1279

Merged
merged 1 commit into from
May 3, 2022
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
14 changes: 14 additions & 0 deletions jans-linux-setup/jans_setup/setup_app/installers/jans.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ def configureSystem(self):
if Config.persistence_type == 'hybrid':
self.writeHybridProperties()

# set systemd start timeout to 5 mins
systemd_conf_fn = '/etc/systemd/system.conf'
systemd_conf = []

for l in open(systemd_conf_fn):
tl = l.strip('#').strip()
if tl.startswith('DefaultTimeoutStartSec'):
systemd_conf.append('DefaultTimeoutStartSec=300s\n')
else:
systemd_conf.append(l)

self.writeFile(systemd_conf_fn, ''.join(systemd_conf))


def makeFolders(self):
# Create these folder on all instances
for folder in (Config.jansOptFolder, Config.jansOptBinFolder, Config.jansOptSystemFolder,
Expand Down