Following this answer, I have tried restarting a Jenkins instance using:
(jenkins_url)/safeRestart
and
(jenkins_url)/restart
Both failed with the following message:
Jenkins cannot restart itself as currently configured.
Searching for Jenkins cannot restart itself as currently configured
shows that the message appears when the app.lifecycle.canRestart
is on, but I am not sure how to set it.
Any idea how to make Jenkins restartable?