From owner-freebsd-questions@FreeBSD.ORG Sun Mar 17 18:46:26 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 94C5C42A for ; Sun, 17 Mar 2013 18:46:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 5F09ADA7 for ; Sun, 17 Mar 2013 18:46:26 +0000 (UTC) Received: from r56.edvax.de (port-92-195-1-27.dynamic.qsc.de [92.195.1.27]) by mx02.qsc.de (Postfix) with ESMTP id 7270F24856; Sun, 17 Mar 2013 19:46:19 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r2HIkPeT001931; Sun, 17 Mar 2013 19:46:25 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Sun, 17 Mar 2013 19:46:25 +0100 From: Polytropon To: s m Subject: Re: how run snort in quiet and deamon mode Message-Id: <20130317194625.3c4307c6.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 18:46:26 -0000 On Sun, 17 Mar 2013 12:15:53 +0330, s m wrote: > hello guys > > i have a freebsd8.2 and wanna run snort on it. my snort version is > 2.9.3.1. i want to run snort in deamon mode and quietly. man page says > that "D" flag is for running snort in deamon mode and "q" flag is to > run it quietly(do not show startup message). my problem is, these two > flag can not work together. when i run "snort -q -D" or "snort -D -q", > snort run in deamon mode but some startup messages are shown. when i > run "snort -q" no message is shown. > > i know it is so simple issue but i do not know how to do that. any > hints or comments are appreciated. Maybe you can start the program as a (quite) background process? snort -q & If you encounter issues related to "controlling terminal disconnect", you can use the system's "daemon" command to basically do what -D would do, or use the port "detach". daemon snort -q See "man daemon" for options you might need to add. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...