summaryrefslogtreecommitdiff
path: root/net-misc/felix/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/felix/files
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/felix/files')
-rw-r--r--net-misc/felix/files/felix.confd7
-rw-r--r--net-misc/felix/files/felix.initd19
2 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/felix/files/felix.confd b/net-misc/felix/files/felix.confd
new file mode 100644
index 000000000000..566b9b5aaaf9
--- /dev/null
+++ b/net-misc/felix/files/felix.confd
@@ -0,0 +1,7 @@
+###
+# Calico Felix Agent config
+#
+# The following values are used to configure calico-felix
+#
+
+command_args=""
diff --git a/net-misc/felix/files/felix.initd b/net-misc/felix/files/felix.initd
new file mode 100644
index 000000000000..92adbb10f489
--- /dev/null
+++ b/net-misc/felix/files/felix.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Calico Felix host agent"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-root}
+group=${group:-root}
+
+command="/usr/bin/calico-felix"
+command_args="${command_args}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ need net
+}