Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 127685

Summary: /etc/logrotate.d/syslog-ng incorrect (syslog-ng-1.6.9)
Product: Gentoo Linux Reporter: Kenyon Ralph <kenyon>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kenyon Ralph 2006-03-26 15:27:59 UTC
The /etc/logrotate.d/syslog-ng placed by app-admin/syslog-ng-1.6.9 is incorrect.  On line 10, instead of "reload" it should say "restart", as Gentoo's init.d scripts have no "reload" command.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-26 15:30:23 UTC
/etc/init.d/syslog-ng

<snip>
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"
        kill -HUP `cat /var/run/syslog-ng.pid` &>/dev/null
        eend $?
}
</snip>
# emerge -pv syslog-ng

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-admin/syslog-ng-1.6.9  USE="-hardened -static tcpd" 747 kB