commit:     11ee51482ad3c58c58da2be036bc6ee6440c43e4
Author:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  4 08:22:32 2015 +0000
Commit:     Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Sun Oct  4 08:23:19 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11ee5148

app-admin/collectd: set required env var in file collectd.initd

fix thanks to Marcin Mirosław sourced from the gentoo bug.

Gentoo bug: #539262

Package-Manager: portage-2.2.20.1

 app-admin/collectd/files/collectd.initd | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app-admin/collectd/files/collectd.initd 
b/app-admin/collectd/files/collectd.initd
index 4f48a11..10d2952 100644
--- a/app-admin/collectd/files/collectd.initd
+++ b/app-admin/collectd/files/collectd.initd
@@ -47,6 +47,7 @@ start() {
 
        ebegin "Starting collectd"
        start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \
+               --env LC_NUMERIC=C \
                --nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \
                        -P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}"
        eend $? "Failed to start collectd"
@@ -55,6 +56,7 @@ start() {
 stop() {
        ebegin "Stopping collectd"
        start-stop-daemon --stop \
+               --env LC_NUMERIC=C \
                --pidfile "${COLLECTD_PIDFILE}"
        eend $? "Failed to stop collectd"
 }

Reply via email to