avahi: Minor fixes

- PEP8 fixes.

- Don't need to disable .socket and .service.  Disabling .service will
  take care of disabling both.

- Update the introduction message.

- Add prefix to form so that it can potentially be mixed with other
  forms.
This commit is contained in:
Sunil Mohan Adapa committed 2015-10-07 01:11:19 +05:30
1 parent e6f7e6020f
commit 94cdd19070
6 files changed
+19 -21

No files matched your search

+3 -5
View File
@@ -17,7 +17,7 @@
#
"""
Configuration helper for service discovery
Configuration helper for service discovery.
"""
import argparse
@@ -38,14 +38,12 @@ def parse_arguments():
def subcommand_enable(_):
"""Start service."""
action_utils.service_enable('avahi-daemon.socket')
action_utils.service_enable('avahi-daemon.service')
action_utils.service_enable('avahi-daemon')
def subcommand_disable(_):
"""Stop service."""
action_utils.service_disable('avahi-daemon.service')
action_utils.service_disable('avahi-daemon.socket')
action_utils.service_disable('avahi-daemon')
def main():