mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/clair: Initial version
Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
24
dev-util/clair/files/clair.initd
Normal file
24
dev-util/clair/files/clair.initd
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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/${SVCNAME}/${SVCNAME}.pid"}
|
||||
user=${user:-${SVCNAME}}
|
||||
group=${group:-${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/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
||||
Reference in New Issue
Block a user