Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 300729 Details for
Bug 401245
app-admin/collectd-5.0.2 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
collectd.initd
collectd.initd (text/plain), 1.52 KB, created by
Johan Bergström
on 2012-02-01 22:12:51 UTC
(
hide
)
Description:
collectd.initd
Filename:
MIME Type:
Creator:
Johan Bergström
Created:
2012-02-01 22:12:51 UTC
Size:
1.52 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >: ${COLLECTD_PIDFILE:='/var/run/collectd/collectd.pid'} >: ${COLLECTD_CFGFILE:='/etc/collectd.conf'} >: ${COLLECTD_NICELVL:='5'} >: ${COLLECTD_USER:='collectd'} > >extra_started_commands="${opts} configtest" > >depend() { > use net >} > >configtest() { > ebegin "Checking ${SVCNAME} configuration" > checkconfig > eend $? >} > >checkconfig() { > if [[ $(sed '/^$\|^#/d' ${COLLECTD_CFGFILE} | grep -c 'LoadPlugin\w\+oracle') != 0 ]] ; then > if [[ -e /etc/env.d/50oracle-instantclient-basic ]] ; then > source /etc/env.d/50oracle-instantclient-basic > export ORACLE_HOME > export TNS_ADMIN > else > ewarn "Unable to set Oracle environment, Oracle plugin wont work" > fi > fi > > /usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}" 1>/dev/null 2>&1 > ret=$? > if [ $ret -ne 0 ]; then > eerror "${SVCNAME} has detected an error in your setup:" > /usr/sbin/collectd -t -C "${COLLECTD_CFGFILE}" > fi > > return $ret >} > >start() { > checkconfig || return 1 > [ -d /var/run/collectd ] || mkdir /var/run/collectd && chown collectd:collectd /var/run/collectd > > ebegin "Starting collectd" > start-stop-daemon --start --user "${COLLECTD_USER}:collectd" \ > --nicelevel "${COLLECTD_NICELVL}" --exec /usr/sbin/collectd -- \ > -P "${COLLECTD_PIDFILE}" -C "${COLLECTD_CFGFILE}" > eend $? "Failed to start collectd" >} > >stop() { > ebegin "Stopping collectd" > start-stop-daemon --stop \ > --pidfile "${COLLECTD_PIDFILE}" > eend $? "Failed to stop collectd" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 401245
:
300727
| 300729