Devuan container on LXD won't stop properly

Hi,

I’m running LXD on Ubuntu Bionic and have been using a Devuan container successfully for some months now. One thing I notice is that the lxc stop devuan command does not actually stop the container like it does for all other container types I run.
Instead I have to do lxc exec devuan -- bash and then run a halt command from within the container.
Is this behavior expected or am I missing something? Is systemd required with a container for management functionality to work? I would expect not.

Any information would be greatly appreciated.

:slight_smile:

Sarah

Can you be a bit more explicit on how you are doing your test ?

gerard@q1900:~$ lxc image list images: | grep devuan | grep amd64
| devuan/ascii (3 more)                | eeb514c7c779 | yes    | Devuan ascii amd64 (20191228_11:50)          | x86_64  | CONTAINER | 76.22MB  | Dec 28, 2019 at 12:00am (UTC) |
| devuan/ascii/cloud (1 more)          | f2258cb8cd41 | yes    | Devuan ascii amd64 (20191228_11:50)          | x86_64  | CONTAINER | 94.12MB  | Dec 28, 2019 at 12:00am (UTC) |
gerard@q1900:~$ lxc launch images:eeb514c7c779 devuan
Creating devuan
Starting devuan                             
gerard@q1900:~$ lxc list | grep devuan
| devuan        | RUNNING | 10.10.0.188 (eth0) |      | PERSISTENT | 0         |
gerard@q1900:~$ lxc stop devuan
gerard@q1900:~$ lxc list | grep devuan
| devuan        | STOPPED |                   |      | PERSISTENT | 0         |