summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-03-29 09:36:34 +0200
committerFabian Groffen <grobian@gentoo.org>2017-03-29 09:36:34 +0200
commit2a8aa5f3e4847d8f79a9e25597745e5ba5128205 (patch)
treef56cb2f4443e111bd66e62de1bad06fd70b9b6ee /mail-filter/opendmarc/files
parentmail-filter/opendmarc: version bump, add dep on HTTP-Message, bug #614174 (diff)
downloadgentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.tar.gz
gentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.tar.bz2
gentoo-2a8aa5f3e4847d8f79a9e25597745e5ba5128205.zip
mail-filter/opendmarc: create /var/run/opendmarc at runtime, bug #605512
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'mail-filter/opendmarc/files')
-rw-r--r--mail-filter/opendmarc/files/opendmarc.initd5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail-filter/opendmarc/files/opendmarc.initd b/mail-filter/opendmarc/files/opendmarc.initd
index 0f248fcb86c7..6a8300f145d6 100644
--- a/mail-filter/opendmarc/files/opendmarc.initd
+++ b/mail-filter/opendmarc/files/opendmarc.initd
@@ -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