summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDawid Węgliński <cla@gentoo.org>2007-11-25 07:24:37 +0000
committerDawid Węgliński <cla@gentoo.org>2007-11-25 07:24:37 +0000
commitbe380725927089dc639ba5bb7067dc12c25f6d65 (patch)
tree0d0fac851d496879bfcaa3bc7c4cc4e36475bf6b /net-wireless/kismet/files
parentVersion bump, fix bug #195077; thanks for Jukka Ruohonen for patch (diff)
downloadgentoo-2-be380725927089dc639ba5bb7067dc12c25f6d65.tar.gz
gentoo-2-be380725927089dc639ba5bb7067dc12c25f6d65.tar.bz2
gentoo-2-be380725927089dc639ba5bb7067dc12c25f6d65.zip
Add init.d and conf.d files
(Portage version: 2.1.3.19)
Diffstat (limited to 'net-wireless/kismet/files')
-rw-r--r--net-wireless/kismet/files/kismet-2007.10.1-conf.d12
-rw-r--r--net-wireless/kismet/files/kismet-2007.10.1-init.d27
2 files changed, 39 insertions, 0 deletions
diff --git a/net-wireless/kismet/files/kismet-2007.10.1-conf.d b/net-wireless/kismet/files/kismet-2007.10.1-conf.d
new file mode 100644
index 000000000000..d203513c7143
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2007.10.1-conf.d
@@ -0,0 +1,12 @@
+# /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=""
diff --git a/net-wireless/kismet/files/kismet-2007.10.1-init.d b/net-wireless/kismet/files/kismet-2007.10.1-init.d
new file mode 100644
index 000000000000..55bdbf75a562
--- /dev/null
+++ b/net-wireless/kismet/files/kismet-2007.10.1-init.d
@@ -0,0 +1,27 @@
+#!/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 ${?}
+}