Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 123169

Summary: snort init script should use --pidfile in start
Product: Gentoo Linux Reporter: Eric Brown <eric.brown>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric Brown 2006-02-17 07:28:06 UTC
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 $?
}
Comment 1 Marcelo Goes (RETIRED) gentoo-dev 2006-02-17 08:22:23 UTC
Thanks, added in 2.4.3-r2.