diff options
-rw-r--r-- | doc/server/plugins/generators/rules.txt | 13 | ||||
-rw-r--r-- | src/lib/Client/Tools/__init__.py | 6 |
2 files changed, 5 insertions, 14 deletions
diff --git a/doc/server/plugins/generators/rules.txt b/doc/server/plugins/generators/rules.txt index c3c4b61c4..cff78a8ee 100644 --- a/doc/server/plugins/generators/rules.txt +++ b/doc/server/plugins/generators/rules.txt @@ -119,7 +119,7 @@ Service Tag +------------+--------------------------+---------------------------------------+ | Name | Description | Values | +============+==========================+=======================================+ -| mode | Per Service Mode (New in | (manual|default|supervised|custom) | +| mode | Per Service Mode (New in | (manual|default|supervised) | | | 1.0) | | +------------+--------------------------+---------------------------------------+ | name | Service Name | String | @@ -129,10 +129,8 @@ Service Tag | | off). | | +------------+--------------------------+---------------------------------------+ | target | Service command for | String | -| | restart, modified | | -| | targets require | | -| | mode="custom" | | -| | (default: restart) | | +| | restart (default: | | +| | restart) | | +------------+--------------------------+---------------------------------------+ | type | Driver to use on the | (chkconfig|deb|rc-update|smf|upstart) | | | client to manage this | | @@ -165,11 +163,6 @@ Service mode descriptions * default and ensure service is running (or stopped) when verification is performed * deprecates supervised='true' -* custom - - * set non-default service command for restart (use in conjunction with - target attribute) - Client Tag ---------- diff --git a/src/lib/Client/Tools/__init__.py b/src/lib/Client/Tools/__init__.py index 8a90e130c..b5120db71 100644 --- a/src/lib/Client/Tools/__init__.py +++ b/src/lib/Client/Tools/__init__.py @@ -335,9 +335,7 @@ class SvcTool(Tool): def restart_service(self, service): self.logger.debug('Restarting service %s' % service.get('name')) - restart_target = 'restart' - if service.get('mode', 'default') == 'custom': - restart_target = service.get('target', 'restart') + restart_target = service.get('target', 'restart') return self.cmd.run(self.get_svc_command(service, restart_target))[0] def check_service(self, service): @@ -353,7 +351,7 @@ class SvcTool(Tool): if entry.get('mode', 'default') == 'manual': continue # need to handle servicemode = (build|default) - # need to handle mode = (default|supervised|custom) + # need to handle mode = (default|supervised) if entry.get('status') == 'on': if self.setup['servicemode'] == 'build': rc = self.stop_service(entry) |