diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/clair/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/clair/files')
-rw-r--r-- | dev-util/clair/files/clair.confd | 2 | ||||
-rw-r--r-- | dev-util/clair/files/clair.initd | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/dev-util/clair/files/clair.confd b/dev-util/clair/files/clair.confd new file mode 100644 index 000000000000..e66675311de3 --- /dev/null +++ b/dev-util/clair/files/clair.confd @@ -0,0 +1,2 @@ +# arguments for clair config +command_args="-config=/etc/clair/config.yaml" diff --git a/dev-util/clair/files/clair.initd b/dev-util/clair/files/clair.initd new file mode 100644 index 000000000000..53518fea6320 --- /dev/null +++ b/dev-util/clair/files/clair.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Clair Vulnerability Static Analysis for Containers" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/clair" +command_args="${command_args:--config=/etc/clair/config.yaml}" +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() { + after net +} |