diff options
author | Agostino Sarubbo <ago@gentoo.org> | 2012-09-02 16:17:35 +0200 |
---|---|---|
committer | Agostino Sarubbo <ago@gentoo.org> | 2012-09-02 16:17:35 +0200 |
commit | 08b3dde5bd6bc01a834816a9d501c9cf3048ac21 (patch) | |
tree | cf30a4b8cddf2125b3eea16b4064ce5fadb49172 /net-analyzer | |
parent | fix manifest (diff) | |
download | ago-08b3dde5bd6bc01a834816a9d501c9cf3048ac21.tar.gz ago-08b3dde5bd6bc01a834816a9d501c9cf3048ac21.tar.bz2 ago-08b3dde5bd6bc01a834816a9d501c9cf3048ac21.zip |
Add init script
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/logkeys/files/logkeys-conf.d | 7 | ||||
-rwxr-xr-x | net-analyzer/logkeys/files/logkeys-init.d | 20 |
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 $? +} |