Using: Ubuntu Server 14.04 x64
LXD 2.0.0
I have several containers (all of them running "alpine-edge") in which I'm running lighttpd + mysql.
The problem is that each time I restart the containers I have to restart manually those services as they don't start automatically.
What do I need to do to fix that?
UPDATE
The temporally work-around that I'm using is to:
lxc exec alpine-edge service lighttpd start
from the parent OS (inside an init script). But I believe there should be a way to do it automatically inside the container, so if I manually reboot it (the container), I don't have to execute that command each time.
service enable <service-name>
)? – Jonathan Y. May 24 '16 at 20:58service enable lighttpd
:service: service 'enable' does not exist
. – lepe May 25 '16 at 0:36service lighttpd enable
; sorry. – Jonathan Y. May 25 '16 at 8:05OpenRC
instead ofsystemd
. From this cheatsheet that I found, doesrc-update add lighttpd default
work? – Jonathan Y. May 25 '16 at 8:28