public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-wireless/kismet/files: kismet-2007.10.1-conf.d kismet-2007.10.1-init.d
@ 2007-11-25  7:24 Dawid Weglinski (cla)
  0 siblings, 0 replies; only message in thread
From: Dawid Weglinski (cla) @ 2007-11-25  7:24 UTC (permalink / raw
  To: gentoo-commits

cla         07/11/25 07:24:38

  Added:                kismet-2007.10.1-conf.d kismet-2007.10.1-init.d
  Log:
  Add init.d and conf.d files
  (Portage version: 2.1.3.19)

Revision  Changes    Path
1.1                  net-wireless/kismet/files/kismet-2007.10.1-conf.d

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/kismet/files/kismet-2007.10.1-conf.d?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/kismet/files/kismet-2007.10.1-conf.d?rev=1.1&content-type=text/plain

Index: kismet-2007.10.1-conf.d
===================================================================
# /etc/conf.d/kismet - configuration file for /etc/init.d/kismet

# Kismet configuration is done in /etc/kismet.conf

# To use the kismet init script, you must have "logtemplate" set to a location
# that is writable by the user assigned by "suiduser".
# e.g.
# suiduser=foo
# logtemplate=%h/kismet_log/%n-%d-%i.%l

# Options to pass to kismet_server, see `kismet_server --help`
KISMET_SERVER_OPTIONS=""



1.1                  net-wireless/kismet/files/kismet-2007.10.1-init.d

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/kismet/files/kismet-2007.10.1-init.d?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-wireless/kismet/files/kismet-2007.10.1-init.d?rev=1.1&content-type=text/plain

Index: kismet-2007.10.1-init.d
===================================================================
#!/sbin/runscript
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/kismet/files/kismet-2007.10.1-init.d,v 1.1 2007/11/25 07:24:37 cla Exp $

checkconfig() {
	if [ ! -e /etc/kismet.conf ]; then
		eerror "Configuration file /etc/kismet.conf not found"
		return 1
	fi
}

start() {
	checkconfig || return 1

	ebegin "Starting kismet server"
	start-stop-daemon --start --quiet --pidfile /var/run/kismet_server.pid \
		--background --make-pidfile --exec /usr/bin/kismet_server \
		-- ${KISMET_SERVER_OPTIONS}
	eend ${?}
}

stop() {
	ebegin "Stopping kismet server"
	start-stop-daemon --stop --quiet --pidfile /var/run/kismet_server.pid
	eend ${?}
}



-- 
gentoo-commits@gentoo.org mailing list



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-25  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-25  7:24 [gentoo-commits] gentoo-x86 commit in net-wireless/kismet/files: kismet-2007.10.1-conf.d kismet-2007.10.1-init.d Dawid Weglinski (cla)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox