Closed elreydetoda closed 7 years ago
Nevermind instead of rc.local I just set it in my crontab for root as the following @reboot /usr/bin/sudo -u www-data /usr/local/bin/misp-modules &
and all is well now. You might want to take a look at doing this instead of rc.local because I couldn't get it to work properly at all in mine for an ubuntu 16.04 Linux 4.4.0-83-generic #106-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
Alright, I have no idea what is going on with this now. We got the misp-modules to be executed from any user (from a previous issue), but now when I try and start it at boot from rc.local it doesn't stay up...
So when I execute it after I start up the misp application
sudo -u www-data bash /var/www/MISP/app/Console/worker/start.sh
then it won't show up in my log at all by the way this is my rc.local file (has extra stuff for debugging)this is the way the /tmp/rc.local.log file looks
but if I swap around the times that it is executed and my rc.local file looks like this
then my debug data from /tmp/rc.local.log look like this... (took out timestamps)
so I would think that it is executed, but when I check netstat (and on the misp application) it isn't running. The process is dead and gone...so any ideas what could be possibly happening?