Gentoo Archives: gentoo-commits

From: Sergey Popov <pinkbyte@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/err/files/
Date: Thu, 02 Aug 2018 13:57:36
Message-Id: 1533218069.41d5eb7a80a83939365333c0ed04606e3d2869f1.pinkbyte@gentoo
1 commit: 41d5eb7a80a83939365333c0ed04606e3d2869f1
2 Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 2 13:50:06 2018 +0000
4 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 2 13:54:29 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41d5eb7a
7
8 net-im/err: add missing initscript
9
10 Reported-by: Toralf Förster <toralf <AT> gentoo.org>
11 Closes: https://bugs.gentoo.org/662604
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 net-im/err/files/errd.initd.2 | 20 ++++++++++++++++++++
15 1 file changed, 20 insertions(+)
16
17 diff --git a/net-im/err/files/errd.initd.2 b/net-im/err/files/errd.initd.2
18 new file mode 100755
19 index 00000000000..460cd070f54
20 --- /dev/null
21 +++ b/net-im/err/files/errd.initd.2
22 @@ -0,0 +1,20 @@
23 +#!/sbin/openrc-run
24 +# Copyright 1999-2018 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +command="/usr/bin/errbot -u ${ERR_USER}:${ERR_GROUP}"
28 +command_args="-d -p ${ERR_PID_FILE} -c ${ERR_CONFIG_PATH}/config.py"
29 +pidfile="${ERR_PID_FILE}"
30 +
31 +depend() {
32 + need net
33 +}
34 +
35 +start_pre() {
36 + # create piddir if necessary, bug #448498
37 + local piddir=$(dirname ${ERR_PID_FILE})
38 + checkpath -q -d -o err:err -m 0770 "${piddir}" || {
39 + eend 1
40 + return 1
41 + }
42 +}