Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP4:FactoryCandidates
logrotate
logrotate-all
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File logrotate-all of Package logrotate
#!/bin/sh set -eu configs= # Only read /usr/etc/logrotate.conf if /etc/logrotate.conf does not exist if ! [ -e /etc/logrotate.conf ]; then configs="$configs /usr/etc/logrotate.conf" else configs="$configs /etc/logrotate.conf" fi # Then read in all of {/usr,}/etc/logrotate.d/*, with /etc/ overriding /usr/etc/. dirs= [ -d /usr/etc/logrotate.d ] && dirs="/usr/etc/logrotate.d" [ -d /etc/logrotate.d ] && dirs="$dirs /etc/logrotate.d" if [ -n "$dirs" ]; then for confname in $(find $dirs -type f -printf "%P\n" | sort -u); do if [ -e "/etc/logrotate.d/$confname" ]; then configs="$configs /etc/logrotate.d/$confname" else configs="$configs /usr/etc/logrotate.d/$confname" fi done fi exec /usr/sbin/logrotate $configs
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor