[Snort-devel] Could we add the manifest/method script to source?

Jason Zhao Jason.Zhao at ...2994...
Fri Jun 12 00:06:40 EDT 2009

Hi, Experts,

I am porting snort to OpenSolaris, since in most
cases, snort will be run as a daemon. And on OpenSolaris,
it is best to run daemon in the mode of SMF
<http://www.sun.com/bigadmin/content/selfheal/smf-quickstart.jsp> service.
So I wrote a set of manifest/method script to make
snort run on OpenSolaris. Please see in attachment.

snortd: method script, mainly use to start the daemon
snort.xml: manifest, to work with SMF framework.

I am not sure if there is some framework similiar to
SMF, but I do believe it would be nice that snort source
code could wrap the manifest/method together, which
may help users/customers to run it more conveniently
on Solaris at least.


-------------- next part --------------
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.

. /lib/svc/share/smf_include.sh

# This script is being used for two purposes: as part of an SMF
# start/stop/refresh method, and as a snort(1M) application.

case $1 in 
	pfexec /usr/bin/snort -d -D

	echo "Usage: $0 { start | restart }"
	exit 1

exit $?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snort.xml
Type: text/xml
Size: 3524 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20090612/33cb9229/attachment.xml>

More information about the Snort-devel mailing list