diff options
author | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-01-24 19:07:28 +0100 |
---|---|---|
committer | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-01-24 19:07:28 +0100 |
commit | fe28c075019905359d2a49f44f78fc8eb876debc (patch) | |
tree | da2920c4957c93a82af10517eeed44869bb2d837 /scripts/rhodecode-setup | |
parent | 8659eb9641204b47893baa50fe56b8c66ac043f4 (diff) |
Implement stop_service method.
Diffstat (limited to 'scripts/rhodecode-setup')
-rwxr-xr-x | scripts/rhodecode-setup | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/rhodecode-setup b/scripts/rhodecode-setup index b4d0de6..3ef9132 100755 --- a/scripts/rhodecode-setup +++ b/scripts/rhodecode-setup @@ -576,6 +576,18 @@ def start_service(service): execute_command(cmd_args, continue_on_error=True) +def stop_service(service): + """Starts a service. + + Start a service by using the 'service' command. + + :param service: The service to start. + :type str + """ + cmd_args = ["service", service, "stop"] + execute_command(cmd_args, continue_on_error=True) + + def reload_apache_service(): """Reloads Apache configuration.""" cmd_args = ["service", "apache2", "reload"] |