Sunil Mohan Adapa 0661d7da7c
app: Add ability to retrieve logs from all systemd units of an app
Tests:

- Upto 200 lines are shown in the logs. The description and unit name of the app
is correct.

- Apps without systemd units don't have 'View Logs' menu item.

- Nextcloud container logs are shown.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2025-09-18 16:35:23 +03:00

23 lines
1.1 KiB
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 .container import (container_disable, container_enable,
container_is_enabled, container_setup,
container_uninstall)
from .packages import (filter_conffile_packages, install,
is_package_manager_busy, remove, update)
from .service import (disable, enable, get_logs, is_enabled, is_running, mask,
reload, restart, start, stop, systemd_set_default,
try_reload_or_restart, try_restart, unmask)
__all__ = [
'filter_conffile_packages', 'install', 'is_package_manager_busy', 'remove',
'update', 'systemd_set_default', 'disable', 'enable', 'is_enabled',
'is_running', 'mask', 'reload', 'restart', 'start', 'stop',
'try_reload_or_restart', 'try_restart', 'unmask', 'get_logs',
'dropin_is_valid', 'dropin_link', 'dropin_unlink', 'container_disable',
'container_enable', 'container_is_enabled', 'container_setup',
'container_uninstall'
]