We already have a pid file specified in stop(), so the start function should also use it. An added benefit of this approach is that this also makes the init scripts work when you run multiple instances of snort. Here's what the start function should look like: start() { checkconfig || return 1 ebegin "Starting snort" start-stop-daemon --start --quiet --exec /usr/bin/snort --pidfile {$PIDFILE} \ -- ${SNORT_OPTS} >/dev/null 2>&1 eend $? }
Thanks, added in 2.4.3-r2.