1 |
commit: 08b3dde5bd6bc01a834816a9d501c9cf3048ac21 |
2 |
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 2 14:17:35 2012 +0000 |
4 |
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 2 14:17:35 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/ago.git;a=commit;h=08b3dde5 |
7 |
|
8 |
Add init script |
9 |
|
10 |
--- |
11 |
net-analyzer/logkeys/files/logkeys-conf.d | 7 +++++++ |
12 |
net-analyzer/logkeys/files/logkeys-init.d | 20 ++++++++++++++++++++ |
13 |
2 files changed, 27 insertions(+), 0 deletions(-) |
14 |
|
15 |
diff --git a/net-analyzer/logkeys/files/logkeys-conf.d b/net-analyzer/logkeys/files/logkeys-conf.d |
16 |
new file mode 100644 |
17 |
index 0000000..d078519 |
18 |
--- /dev/null |
19 |
+++ b/net-analyzer/logkeys/files/logkeys-conf.d |
20 |
@@ -0,0 +1,7 @@ |
21 |
+# /etc/conf.d/logkeys: config file for /etc/init.d/logkeys |
22 |
+ |
23 |
+# Options to pass to the logkeys daemon. |
24 |
+# See the logkeys(8) man page for more info. |
25 |
+ |
26 |
+LOGKEYS_ARGS="" |
27 |
+ |
28 |
|
29 |
diff --git a/net-analyzer/logkeys/files/logkeys-init.d b/net-analyzer/logkeys/files/logkeys-init.d |
30 |
new file mode 100755 |
31 |
index 0000000..fd07614 |
32 |
--- /dev/null |
33 |
+++ b/net-analyzer/logkeys/files/logkeys-init.d |
34 |
@@ -0,0 +1,20 @@ |
35 |
+#!/sbin/runscript |
36 |
+# Copyright 1999-2012 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License, v2 or later |
38 |
+# $Header: |
39 |
+ |
40 |
+start() { |
41 |
+ ebegin "Starting Logkeys" |
42 |
+ |
43 |
+ start-stop-daemon \ |
44 |
+ --start \ |
45 |
+ --pidfile /var/run/logkeys.pid \ |
46 |
+ --exec /usr/bin/logkeys -- -s ${LOGKEYS_ARGS} |
47 |
+ eend $? |
48 |
+} |
49 |
+ |
50 |
+stop() { |
51 |
+ ebegin "Stopping Logkeys" |
52 |
+ start-stop-daemon --stop --pidfile /var/run/logkeys.pid |
53 |
+ eend $? |
54 |
+} |