12-15-2006
when the logs rotate is defined in the logrotate.conf, you can see more details with "man logrotate"
logrotate is not a deamon, therefore it does not need restarting.
from the man page:
Normally, logrotate is run as a daily cron job. It will not modify a log more than once in one day unless the criterion
for that log is based on the log's size and logrotate is being run more than once each day, or unless the -f or --force
option is used.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,guys:
recently,i am puzzled by a question .when i create a new file named by /etc/logrotate.d/debug. The cont. is listed as follow:
/var/log/debug {
rotate 3
missingok
notifempty
size=2k
prerotate
/bin/kill -HUP `cat... (0 Replies)
Discussion started by: icehero
0 Replies
2. UNIX for Advanced & Expert Users
HI,
I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP)
for receiving
TRAPS in my networks. I am using RHEL4.0 OS.
Please tell me How I can configure above two files in a proper way and at an
advanced level.
Especially I am getting... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies
3. Solaris
Hello Guys,
Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify? (4 Replies)
Discussion started by: mokkan
4 Replies
4. UNIX for Advanced & Expert Users
Hi there,
I want to rotate the logfiles which are located in /var/log/jboss/tomcat*
so I have created a file named as 'tomat' in /etc/logrotate.d/tomcat with the following content.
# cat /etc/logrotate.d/tomcat
/var/log/jboss/tomcat_access_log*.log {
daily
nocreate
... (2 Replies)
Discussion started by: skmdu
2 Replies
5. Red Hat
Hi all,
I have to configure the logrotate.conf file on some Linux RedHat servers.
So, by default I seen the file is as follow:
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating... (5 Replies)
Discussion started by: idro
5 Replies
6. Shell Programming and Scripting
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
7. AIX
Hi Admins.
I have installed logrotate rpm on Aix 6.1.
After the installation of rpm, I don't find /etc/logrotate.conf file and /etc/logrotate.d dir .
The config file is located in /opt/freeware/etc/logrotate.conf.
When I ran
logrotate -v /opt/freeware/etc/logrotate.conf
I get below... (2 Replies)
Discussion started by: snchaudhari2
2 Replies
8. AIX
Hey Admins,
I have installed logrotate on AIX server. I want to configure it for
1. /var/log/messages – keep 90 days, i.e., weekly rotate 13
2. Syslog – keep 90 days i.e., weekly rotate 13
3. Wtmp – keep 90 days i.e., weekly rotate 13
4. Sulog – keep 90 days i.e., weekly rotate 13
What... (1 Reply)
Discussion started by: snchaudhari2
1 Replies
9. Shell Programming and Scripting
Hello all,
Newbie here.
I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the... (3 Replies)
Discussion started by: Mide
3 Replies
10. Solaris
Hi,
I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf.
I used below to configure both settings:
# svccfg -s dns/client
svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies
LEARN ABOUT DEBIAN
buildslave
BUILDSLAVE(1) User Commands BUILDSLAVE(1)
NAME
buildslave - a tool for managing buildbot slave instances
SYNOPSIS
buildslave [ global options ] command [ command options ]
buildslave create-slave [ -q|--quiet ] [ -f|--force ] [ -r|--relocatable ] [ -n|--no-logrotate ] [ -k|--keepalive TIME ] [ --usepty {0|1} ]
[ --umask UMASK ] [ -s|--log-size SIZE ] [ -l|--log-count COUNT ] [ --verbose ] PATH MASTER USERNAME PASSWORD
buildslave [ --verbose ] { start|stop|restart } [ PATH ]
buildslave [ --verbose ] { --help|--version }
buildslave command -h|--help
DESCRIPTION
The `buildslave' command-line tool can be used to start or stop a buildslave or create a new buildslave instance.
OPTIONS
Commands
create-slave
Create and populate a directory for a new buildslave
start Start a buildslave
stop Stop a buildslave
restart
Restart a buildslave
Global options
-h|--help
Print the list of available commands and global options. All subsequent commands are ignored.
--version
Print twistd and buildslave version. All subsequent commands are ignored.
--verbose
Verbose output.
create-slave command options
-f|--force
Re-use an existing directory.
-h|--help
Show help for current command and exit. All subsequent commands are ignored.
-k|--keepalive
Send keepalive requests to buildmaster every TIME seconds. Default value is 600 seconds.
-l|--log-count
Limit the number of kept old twisted log files to COUNT. All files are kept by default.
-q|--quiet
Do not emit the commands being run.
-r|--relocatable
Create a relocatable buildbot.tac.
-n|--no-logrotate
Do not permit buildslave rotate logs by itself.
-s|--log-size
Set size at which twisted lof file is rotated to SIZE bytes. Default value is 1000000 bytes.
--umask
Set umask for files created by buildslave. Default value is 077 which means only owner can access the files. See umask(2) for more
details.
--usepty
Set wether child processes should be run in a pty (0 means do not run in a pty). Default value is 0.
PATH Path to buildslave base directory.
MASTER Set the host and port of buildbot master to attach to in form HOST:PORT. This should be provided by buildmaster administrator.
USERNAME
Buildslave name to connect with. This should be provided by buildmaster administrator.
PASSWORD
Buildslave password to connect with. This should be provided by buildmaster administrator.
SEE ALSO
buildbot(1), umask(2),
The complete documentation is available in texinfo format. To use it, run info buildbot.
Buildbot August 2010 BUILDSLAVE(1)