Zdar...
mám trable ve FreeBSD se spuštěním příkazu v /etc/rc.local
jde konkrétně o Snort3...ve Snort CookBook je citace:
------------------------------------------------------------------------------------------------------------------
The exact methods for starting Snort at boot vary slightly from distribution to distribution. There are likely to be some slight differences between the exact methods of setting this up on each different Linux distribution. The simplest method, if your system supports it, is to modify the /etc/rc.d/rc.local script. This script runs after all the other init scripts on the system, so your system will be unmonitored between the start of network services and the start of Snort. Add a line similar to the following to your rc.local script:
/usr/local/bin/snort -D -c /etc/snort/snort.conf -l /var/log/snort------------------------------------------------------------------------------------------------------------------
Podobným způsobem jsem to nandal i já ve FreeBSD ale, po rebootu Snort neběží a tak se snažím dopátrat co je špatně.
Pro jistotu jsem si otestoval zda je již vytvořen bridge a výstup z ifconfig zapisuji do souboru. Bridge je v ten moment správně vytvořen.
# nano /etc/rc.local
GNU nano 2.9.8 /etc/rc.local
#!/bin/sh
ifconfig >> /home/supervisor/rc-local.txt
/usr/local/snort/bin/snort -c /usr/local/snort/etc/snort/snort.lua -i bridge0
exit 0
pokus manuálně spustím:
sh /etc/rc.localvše korektně naběhne
ve /var/log/messages nevidím nic podezdřelého