summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/logkeys/files/logkeys-conf.d7
-rwxr-xr-xnet-analyzer/logkeys/files/logkeys-init.d20
2 files changed, 27 insertions, 0 deletions
diff --git a/net-analyzer/logkeys/files/logkeys-conf.d b/net-analyzer/logkeys/files/logkeys-conf.d
new file mode 100644
index 0000000..d078519
--- /dev/null
+++ b/net-analyzer/logkeys/files/logkeys-conf.d
@@ -0,0 +1,7 @@
+# /etc/conf.d/logkeys: config file for /etc/init.d/logkeys
+
+# Options to pass to the logkeys daemon.
+# See the logkeys(8) man page for more info.
+
+LOGKEYS_ARGS=""
+
diff --git a/net-analyzer/logkeys/files/logkeys-init.d b/net-analyzer/logkeys/files/logkeys-init.d
new file mode 100755
index 0000000..fd07614
--- /dev/null
+++ b/net-analyzer/logkeys/files/logkeys-init.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header:
+
+start() {
+ ebegin "Starting Logkeys"
+
+ start-stop-daemon \
+ --start \
+ --pidfile /var/run/logkeys.pid \
+ --exec /usr/bin/logkeys -- -s ${LOGKEYS_ARGS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Logkeys"
+ start-stop-daemon --stop --pidfile /var/run/logkeys.pid
+ eend $?
+}