From 41d5eb7a80a83939365333c0ed04606e3d2869f1 Mon Sep 17 00:00:00 2001 From: Sergey Popov Date: Thu, 2 Aug 2018 16:50:06 +0300 Subject: net-im/err: add missing initscript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported-by: Toralf Förster Closes: https://bugs.gentoo.org/662604 Package-Manager: Portage-2.3.40, Repoman-2.3.9 --- net-im/err/files/errd.initd.2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 net-im/err/files/errd.initd.2 (limited to 'net-im') diff --git a/net-im/err/files/errd.initd.2 b/net-im/err/files/errd.initd.2 new file mode 100755 index 000000000000..460cd070f54d --- /dev/null +++ b/net-im/err/files/errd.initd.2 @@ -0,0 +1,20 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/errbot -u ${ERR_USER}:${ERR_GROUP}" +command_args="-d -p ${ERR_PID_FILE} -c ${ERR_CONFIG_PATH}/config.py" +pidfile="${ERR_PID_FILE}" + +depend() { + need net +} + +start_pre() { + # create piddir if necessary, bug #448498 + local piddir=$(dirname ${ERR_PID_FILE}) + checkpath -q -d -o err:err -m 0770 "${piddir}" || { + eend 1 + return 1 + } +} -- cgit v1.2.3-65-gdbad