1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lxd_ynh.git synced 2024-09-03 19:45:53 +02:00

restart lxc in case it was used in the system already

This commit is contained in:
Félix Piédallu 2024-02-01 18:25:32 +01:00
parent e55958c319
commit 73059a1b1f

View file

@ -23,7 +23,7 @@ fi
ynh_exec_warn_less ynh_remove_systemd_socket_config
ynh_exec_warn_less ynh_remove_systemd_config
# Stop LXC systemd services
# Stop LXC systemd services, just for dnsmasq.
ynh_systemd_action --service_name="lxc-net" --action="stop"
ynh_systemd_action --service_name="lxc" --action="stop"
@ -37,6 +37,10 @@ _ynh_remove_dnsmasq
ynh_exec_warn ss -lp "sport = :domain"
# Stop LXC systemd services, just for dnsmasq.
ynh_systemd_action --service_name="lxc-net" --action="start"
ynh_systemd_action --service_name="lxc" --action="start"
#=================================================
# REMOVE CONTAINERS
#=================================================