#!/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"
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
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \
newconfd "${FILESDIR}"/opendmarc.confd opendmarc
dodir /etc/opendmarc
- dodir /var/run/opendmarc
- fowners milter:milter /var/run/opendmarc
# create config file
sed \