}
export default class RestartButton extends React.PureComponent<Props> {
- handleConfirm = () => {
- return restart().then(this.props.fetchSystemStatus);
- };
+ handleConfirm = () => restart().then(this.props.fetchSystemStatus);
render() {
const { className, systemStatus } = this.props;
<p className="spacer-top spacer-bottom">
{translate('system.are_you_sure_to_restart')}
</p>
- <p>{translate('system.forcing_shutdown_not_recommended')}</p>
+ <p className="spacer-bottom">{translate('system.forcing_shutdown_not_recommended')}</p>
+ <p>{translate('system.restart_does_not_reload_sonar_properties')}</p>
</>
}
modalHeader={translate('system.restart_server')}
>
system.are_you_sure_to_restart
</p>
- <p>
+ <p
+ className="spacer-bottom"
+ >
system.forcing_shutdown_not_recommended
</p>
+ <p>
+ system.restart_does_not_reload_sonar_properties
+ </p>
</React.Fragment>
}
modalHeader="system.restart_server"
@Override
public void define(WebService.NewController controller) {
controller.createAction("restart")
- .setDescription("Restart server. Require 'Administer System' permission. Perform a full restart of the Web, Search and Compute Engine Servers processes.")
+ .setDescription("Restarts server. Requires 'Administer System' permission. Performs a full restart of the Web, Search and Compute Engine Servers processes."
+ + " Does not reload sonar.properties.")
.setSince("4.3")
.setPost(true)
.setHandler(this);
+#--------------------------------------------------------------------------------------------------
+# IMPORTANT:
+# This file will *not* be reloaded upon hitting the "Restart" button in the UI, or using the
+# api/system/restart endpoint.
+# In order for any change made to this file to be taken into account, you must perform a full
+# restart of the main SonarQube service.
+#--------------------------------------------------------------------------------------------------
+
# Property values can:
# - be overridden by environment variables. The name of the corresponding environment variable is the
# upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by
system.log_level.info=Your selection does not affect the Search Engine.
system.logs_level=Logs level
system.new_version_available=A new version of SonarQube is available.
+system.restart_does_not_reload_sonar_properties=Also note that a restart will not reload the sonar.properties file.
system.see_whats_new=See what's new!
system.release_notes=Release Notes
system.released_x=Released {0}
},
{
"key": "restart",
- "description": "Restart server. Require 'Administer System' permission. Perform a full restart of the Web, Search and Compute Engine Servers processes.",
+ "description": "Restarts server. Requires 'Administer System' permission. Performs a full restart of the Web, Search and Compute Engine Servers processes. Does not reload sonar.properties.",
"since": "4.3",
"internal": false,
"post": true,