diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2012-06-21 11:27:53 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2012-06-21 11:27:53 +0000 |
commit | 9f77bd0ffd9fea04e998f4ed3e835947d56855ab (patch) | |
tree | aa1df3942d841fbf9d04c8b834cf0140048c7dbe /net-im/err/files | |
parent | net-ftp/pureadmin: Add fix for gold, #369103 (diff) | |
download | gentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.tar.gz gentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.tar.bz2 gentoo-2-9f77bd0ffd9fea04e998f4ed3e835947d56855ab.zip |
Add net-im/err, bug 421373. Thanks to Pinkbyte
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'net-im/err/files')
-rw-r--r-- | net-im/err/files/errd.confd | 4 | ||||
-rw-r--r-- | net-im/err/files/errd.initd | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/net-im/err/files/errd.confd b/net-im/err/files/errd.confd new file mode 100644 index 000000000000..9511228d0b47 --- /dev/null +++ b/net-im/err/files/errd.confd @@ -0,0 +1,4 @@ +ERR_CONFIG_PATH=/etc/err +ERR_PID_FILE=/var/run/err/err.pid +ERR_USER=err +ERR_GROUP=err diff --git a/net-im/err/files/errd.initd b/net-im/err/files/errd.initd new file mode 100644 index 000000000000..7e3001a696d6 --- /dev/null +++ b/net-im/err/files/errd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start() { + ebegin "Starting errd" + start-stop-daemon --start --make-pidfile --pidfile ${ERR_PID_FILE} --background --quiet \ + --exec /usr/bin/python2 -- /usr/bin/err.py -c ${ERR_CONFIG_PATH} -u ${ERR_USER} -g ${ERR_GROUP} + eend $? +} + +stop() { + ebegin "Stopping errd" + start-stop-daemon --stop --pidfile ${ERR_PID_FILE} + eend $? +} |