1 |
commit: cccb46607d9f00f92a5eaef700347b27265f3c09 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 10 23:17:52 2017 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 10 23:19:28 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cccb4660 |
7 |
|
8 |
Revert "app-emulation/cadvisor: remove unused file" |
9 |
|
10 |
This reverts commit 5095b13905b38015be18a2281936ff08c785f092. |
11 |
|
12 |
app-emulation/cadvisor/files/cadvisor.initd | 18 ++++++++++++++++++ |
13 |
1 file changed, 18 insertions(+) |
14 |
|
15 |
diff --git a/app-emulation/cadvisor/files/cadvisor.initd b/app-emulation/cadvisor/files/cadvisor.initd |
16 |
new file mode 100644 |
17 |
index 00000000000..19e36b2c81a |
18 |
--- /dev/null |
19 |
+++ b/app-emulation/cadvisor/files/cadvisor.initd |
20 |
@@ -0,0 +1,18 @@ |
21 |
+#!/sbin/openrc-run |
22 |
+# Copyright 2016-2017 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+description="cAdvisor - Analyzes resource usage and performance characteristics of running containers" |
26 |
+pidfile=${pidfile:-"/run/${SVCNAME}.pid"} |
27 |
+user=${user:-${SVCNAME}} |
28 |
+group=${group:-${SVCNAME}} |
29 |
+ |
30 |
+command="/usr/bin/cadvisor" |
31 |
+command_background="true" |
32 |
+start_stop_daemon_args="--user ${user} --group ${group} \ |
33 |
+ --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ |
34 |
+ --stderr /var/log/${SVCNAME}/${SVCNAME}.log" |
35 |
+ |
36 |
+depend() { |
37 |
+ after net |
38 |
+} |