mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-10 11:00:22 +00:00
service: Add missing restart action
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
2ee82e4b5a
commit
6927e12f54
@ -46,6 +46,7 @@ def parse_arguments():
|
||||
add_service_action(subparsers, 'stop', 'stop a service')
|
||||
add_service_action(subparsers, 'enable', 'enable a service')
|
||||
add_service_action(subparsers, 'disable', 'disable a service')
|
||||
add_service_action(subparsers, 'restart', 'restart a service')
|
||||
add_service_action(subparsers, 'reload', 'reload a service')
|
||||
add_service_action(subparsers, 'is-running', 'status of a service')
|
||||
add_service_action(subparsers, 'is-enabled', 'status a service')
|
||||
@ -73,6 +74,10 @@ def subcommand_disable(arguments):
|
||||
action_utils.service_disable(arguments.service)
|
||||
|
||||
|
||||
def subcommand_restart(arguments):
|
||||
action_utils.service_restart(arguments.service)
|
||||
|
||||
|
||||
def subcommand_reload(arguments):
|
||||
action_utils.service_reload(arguments.service)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user