Skip to content

Commit

Permalink
feat: jans-linux-setup set DefaultTimeoutStartSec=300s (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimyatar authored May 3, 2022
1 parent 17e0932 commit 6b511c4
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit 6b511c4

Please sign in to comment.