Autostart a process after container starts?

Vassilis Kipouros

Renowned Member
Nov 2, 2016
55
6
73
49
Hello,

There is a process inside an LXC container that I need started together with the container.

Tried adding:

lxc.init_cmd: /usr/local/bin/airdcppd -d

but the container won't even start after I add the line to the [ctid].conf...

Can someone point me to the right direction?

Thanx

Vassilis
 
just use the regular boot mechanism of your distribution in the container? e.g., write an init script or systemd unit and put it in the right place.