Below is my service file,
Description=LXC Container: app
ExecStartPre=/usr/local/bin/lxc-start -n childapp2 -f /var/lib/lxc/childapp2/config
ExecStart = /usr/local/bin/lxc-attach -n childapp2 -f /var/lib/lxc/childapp2/config-- /var/lib/lxc/childapp2/media/app
ExecStop = /usr/local/bin/lxc-stop -n childapp2
I want to send WatchDogSec from /lxc/childapp2/media/app which is being started inside the container.
I think it is not happening with this service file as systemd considers lxc-attach as main process and expects WatchDogSec from it not from /app process.
Could you please suggest solution for this