Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 229285 Details for
Bug 317339
app-admin/syslog-ng-3.0.4 - syslog-ng -s /etc/syslog-ng/syslog-ng.conf - syslog-ng: Excess number of arguments
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/syslog-ng (Current syslog-ng startup file)
syslog-ng (text/plain), 1.83 KB, created by
Christophe LEFEBVRE
on 2010-04-26 18:35:32 UTC
(
hide
)
Description:
/etc/init.d/syslog-ng (Current syslog-ng startup file)
Filename:
MIME Type:
Creator:
Christophe LEFEBVRE
Created:
2010-04-26 18:35:32 UTC
Size:
1.83 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.rc6-r1,v 1.8 2009/11/06 17:03:33 mr_bones_ Exp $ > >opts="checkconfig reload" > >depend() { > # Make networking dependency conditional on configuration > case $(sed 's/#.*//' /etc/syslog-ng/syslog-ng.conf) in > *source*tcp*|*source*udp*|*destination*tcp*|*destination*udp*) > need net > use stunnel ;; > esac > > # kludge for baselayout-1 compatibility > [ -z "${svclib}" ] && config /etc/syslog-ng/syslog-ng.conf > need clock hostname localmount > provide logger >} > >checkconfig() { > if [ ! -e /etc/syslog-ng/syslog-ng.conf ] ; then > eerror "You need to create /etc/syslog-ng/syslog-ng.conf first." > eerror "An example can be found in /etc/syslog-ng/syslog-ng.conf.sample" > return 1 > fi > syslog-ng -s /etc/syslog-ng/syslog-ng.conf > > # the start and reload functions have their own eends so > # avoid calling this twice when there are no problems > [ $? -eq 0 ] || eend $? "Configuration error. Please fix your configfile (/etc/syslog-ng/syslog-ng.conf)" >} > >start() { > checkconfig || return 1 > ebegin "Starting syslog-ng" > [ -n "${SYSLOG_NG_OPTS}" ] && SYSLOG_NG_OPTS="-- ${SYSLOG_NG_OPTS}" > start-stop-daemon --start --exec /usr/sbin/syslog-ng ${SYSLOG_NG_OPTS} > eend $? "Failed to start syslog-ng" >} > >stop() { > ebegin "Stopping syslog-ng" > start-stop-daemon --stop --pidfile /var/run/syslog-ng.pid > eend $? "Failed to stop syslog-ng" > sleep 1 # needed for syslog-ng to stop in case we're restarting >} > >reload() { > if [ ! -f /var/run/syslog-ng.pid ]; then > eerror "syslog-ng isn't running" > return 1 > fi > checkconfig || return 1 > ebegin "Reloading configuration and re-opening log files" > start-stop-daemon --stop --oknodo --signal HUP \ > --pidfile /var/run/syslog-ng.pid > eend $? >}
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 317339
: 229285 |
229287