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:
parent
e55958c319
commit
73059a1b1f
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue