mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
e6f7e6020f
commit
94cdd19070
6 files changed
+19
-21
No files matched your search
+3
-5
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user