<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>123169</bug_id>
          
          <creation_ts>2006-02-17 07:28 0000</creation_ts>
          <short_desc>snort init script should use --pidfile in start</short_desc>
          <delta_ts>2006-02-17 08:22:23 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>eric.brown@dnbrown.net</reporter>
          <assigned_to>netmon@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>eric.brown@dnbrown.net</who>
            <bug_when>2006-02-17 07:28:06 0000</bug_when>
            <thetext>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&apos;s what the start function should look like:

start() {
    checkconfig || return 1
    ebegin &quot;Starting snort&quot;
    start-stop-daemon --start --quiet --exec /usr/bin/snort --pidfile {$PIDFILE} \
        -- ${SNORT_OPTS} &gt;/dev/null 2&gt;&amp;1
    eend $?
}</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>vanquirius@gentoo.org</who>
            <bug_when>2006-02-17 08:22:23 0000</bug_when>
            <thetext>Thanks, added in 2.4.3-r2.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>