Local startup - command is not executed


#1

Hello,
I am playing with ntopng which I ma starting with

daemonlogger -i br-lan -o veth-mon -d -l /srv/log

I tried to put it into /etc/rc.local, but after start it is not executed. If I run that later manually it works fine. Any hint where problem can be?


#2

Maybe network is not up so early in boot process… you could add „sleep 60 && YOURCOMMAND“

EDIT: Append >> /var/log/XXX 2>&1 and see if you get any error message


#3

Thanks, it was the case, I just needed to put there a bigger delay to give time to LXC container hosting ntopng.