mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512
Package-Manager: Portage-2.3.3, Repoman-2.3.1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
CONFFILE="/etc/opendmarc/${SVCNAME}.conf"
|
||||
@@ -14,6 +14,9 @@ check_cfg() {
|
||||
eerror "Configuration file ${CONFFILE} is missing"
|
||||
return 1
|
||||
fi
|
||||
# create /var/run/opendmarc
|
||||
mkdir -p /var/run/opendmarc >& /dev/null
|
||||
chown ${OPENDMARC_USER}:${OPENDMARC_GROUP} /var/run/opendmarc >& /dev/null
|
||||
PIDFILE=$(sed -ne 's/^[[:space:]]*PidFile[[:space:]]\+//p' "${CONFFILE}")
|
||||
local PIDDIR="${PIDFILE%/*}"
|
||||
if [ ! -d "${PIDDIR}" ] ; then
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
@@ -39,8 +39,6 @@ src_install() {
|
||||
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
|
||||
|
||||
dodir /etc/opendmarc
|
||||
dodir /var/run/opendmarc
|
||||
fowners milter:milter /var/run/opendmarc
|
||||
|
||||
# create config file
|
||||
sed \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
@@ -39,8 +39,6 @@ src_install() {
|
||||
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
|
||||
|
||||
dodir /etc/opendmarc
|
||||
dodir /var/run/opendmarc
|
||||
fowners milter:milter /var/run/opendmarc
|
||||
|
||||
# create config file
|
||||
sed \
|
||||
|
||||
@@ -40,8 +40,6 @@ src_install() {
|
||||
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
|
||||
|
||||
dodir /etc/opendmarc
|
||||
dodir /var/run/opendmarc
|
||||
fowners milter:milter /var/run/opendmarc
|
||||
|
||||
# create config file
|
||||
sed \
|
||||
|
||||
Reference in New Issue
Block a user