mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Reload a service if it supports reloading, otherwise restart. Do nothing if service is not running. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
17 lines
797 B
Python
17 lines
797 B
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""Package holding all the privileged actions outside of apps."""
|
|
|
|
from .config import dropin_is_valid, dropin_link, dropin_unlink
|
|
from .packages import (filter_conffile_packages, install,
|
|
is_package_manager_busy, remove, update)
|
|
from .service import (disable, enable, is_enabled, is_running, mask, reload,
|
|
restart, start, stop, try_reload_or_restart, try_restart,
|
|
unmask)
|
|
|
|
__all__ = [
|
|
'filter_conffile_packages', 'install', 'is_package_manager_busy', 'remove',
|
|
'update', 'disable', 'enable', 'is_enabled', 'is_running', 'mask',
|
|
'reload', 'restart', 'start', 'stop', 'try_reload_or_restart',
|
|
'try_restart', 'unmask', 'dropin_is_valid', 'dropin_link', 'dropin_unlink'
|
|
]
|