[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14978373#comment-14978373
 ] 

ASF GitHub Bot commented on CLOUDSTACK-9000:
--------------------------------------------

Github user remibergsma commented on the pull request:

    https://github.com/apache/cloudstack/pull/992#issuecomment-151836687
  
    LGTM, tested on `CentOS 7` and the logrotate file gets properly installed:
    
    ```
    [root@kvm1 logrotate.d]# pwd
    /etc/logrotate.d
    [root@kvm1 logrotate.d]# cat cloudstack-agent 
    # Licensed to the Apache Software Foundation (ASF) under one
    # or more contributor license agreements.  See the NOTICE file
    # distributed with this work for additional information
    # regarding copyright ownership.  The ASF licenses this file
    # to you under the Apache License, Version 2.0 (the
    # "License"); you may not use this file except in compliance
    # with the License.  You may obtain a copy of the License at
    #
    #   http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing,
    # software distributed under the License is distributed on an
    # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    # KIND, either express or implied.  See the License for the
    # specific language governing permissions and limitations
    # under the License.
    
    /var/log/cloudstack/agent/cloudstack-agent.out
    /var/log/cloudstack/agent/cloudstack-agent.err
    {
        copytruncate
        daily
        rotate 5
        compress
        missingok
    }
    ```
    



> Logrotate cloudstack-agent error and out files
> ----------------------------------------------
>
>                 Key: CLOUDSTACK-9000
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9000
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Rohit Yadav
>            Assignee: Rohit Yadav
>             Fix For: 4.5.3, 4.6.0
>
>
> As defined in cloud-agent.rc ( -errfile $LOGDIR/cloudstack-agent.err -outfile 
> $LOGDIR/cloudstack-agent.out $CLASS), jsvc can fill up disk very quickly in 
> case of errors. The fix would be to logrotate, the out and err files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to