summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2018-08-02 16:50:06 +0300
committerSergey Popov <pinkbyte@gentoo.org>2018-08-02 16:54:29 +0300
commit41d5eb7a80a83939365333c0ed04606e3d2869f1 (patch)
treedda0306ae744519946d3053719bbdea5af4ac476 /net-im/err
parentnet-libs/gtk-vnc: bump to 0.8.0 (diff)
downloadgentoo-41d5eb7a80a83939365333c0ed04606e3d2869f1.tar.gz
gentoo-41d5eb7a80a83939365333c0ed04606e3d2869f1.tar.bz2
gentoo-41d5eb7a80a83939365333c0ed04606e3d2869f1.zip
net-im/err: add missing initscript
Reported-by: Toralf Förster <toralf@gentoo.org> Closes: https://bugs.gentoo.org/662604 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-im/err')
-rwxr-xr-xnet-im/err/files/errd.initd.220
1 files changed, 20 insertions, 0 deletions
diff --git a/net-im/err/files/errd.initd.2 b/net-im/err/files/errd.initd.2
new file mode 100755
index 00000000000..460cd070f54
--- /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
+ }
+}